From 9f95c8837786c739e618a80c9685580c2b83367a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 27 Nov 2022 21:00:53 -0600 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 14681f2..55b3af1 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -354,10 +354,10 @@ DSMON_INSTALL() { } REMOVEFLOPPY() { echo "" - if [ -f /etc/modprobe.d/blacklist-floppy.conf ]; then + if [ ! -f /etc/modprobe.d/blacklist-floppy.conf ]; then echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf sudo rmmod floppy - #sudo update-initramfs -u + sudo update-initramfs -u echo echo -e "${Green}Floppy has been removed, you must reboot to take effect.${Color_Off}" echo