Update linupx-scripts.sh

This commit is contained in:
2022-11-27 21:00:53 -06:00
parent 7fbe8fd190
commit 9f95c88377

View File

@@ -354,10 +354,10 @@ DSMON_INSTALL() {
} }
REMOVEFLOPPY() { REMOVEFLOPPY() {
echo "" 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 echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf
sudo rmmod floppy sudo rmmod floppy
#sudo update-initramfs -u sudo update-initramfs -u
echo echo
echo -e "${Green}Floppy has been removed, you must reboot to take effect.${Color_Off}" echo -e "${Green}Floppy has been removed, you must reboot to take effect.${Color_Off}"
echo echo