Copy modprobe file to system only if modprobe.d folder exists
This commit is contained in:
parent
55434fb26d
commit
dde49a43c8
1 changed files with 5 additions and 1 deletions
|
@ -58,8 +58,12 @@ backup skipped.
|
|||
function copy_FILES () {
|
||||
echo "Starting copying files to the system!"
|
||||
|
||||
if [ -d "/etc/modprobe.d" ];
|
||||
then
|
||||
sudo cp -v "$SCRIPTDIR/$MODPROBE/vfio.conf" "/etc/modprobe.d/vfio.conf"
|
||||
|
||||
fi
|
||||
|
||||
if [ -d "/etc/initramfs-tools" ];
|
||||
then
|
||||
sudo cp -v "$SCRIPTDIR/$ETCMODULES" "/etc/modules"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue