diff --git a/lib/apply_CHANGES.sh b/lib/apply_CHANGES.sh index ddf5c2e..bf2bf26 100755 --- a/lib/apply_CHANGES.sh +++ b/lib/apply_CHANGES.sh @@ -58,7 +58,11 @@ backup skipped. function copy_FILES () { 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" ]; then