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,7 +58,11 @@ backup skipped.
|
||||||
function copy_FILES () {
|
function copy_FILES () {
|
||||||
echo "Starting copying files to the system!"
|
echo "Starting copying files to the system!"
|
||||||
|
|
||||||
sudo cp -v "$SCRIPTDIR/$MODPROBE/vfio.conf" "/etc/modprobe.d/vfio.conf"
|
if [ -d "/etc/modprobe.d" ];
|
||||||
|
then
|
||||||
|
sudo cp -v "$SCRIPTDIR/$MODPROBE/vfio.conf" "/etc/modprobe.d/vfio.conf"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d "/etc/initramfs-tools" ];
|
if [ -d "/etc/initramfs-tools" ];
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue