Update linupx-scripts.sh

This commit is contained in:
2022-11-27 20:42:14 -06:00
parent 7db54ee56c
commit 9100568947

View File

@@ -354,24 +354,26 @@ DSMON_INSTALL() {
}
REMOVEFLOPPY() {
echo ""
echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf
sudo rmmod floppy
sudo update-initramfs -u
echo ""
echo -e "${Green}Floppy has been removed, you must reboot to take effect.${Color_Off}"
read -n 1 -p -e "${Blue}Would you like to reboot now (y/N)?" choice
case "$choice" in
[Yy])
echo
echo '${BOrange}The system is now rebooting...${Color_Off}'
if [ "$EUID" -ne 0 ]; then sudo shutdown -r now
else shutdown -r now; fi
sleep 60
exit 0;;
* ) SCRIPT_MENU;;
esac
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
echo ""
echo -e "${Green}Floppy has been removed, you must reboot to take effect.${Color_Off}"
read -en 1 -p "${Blue}Would you like to reboot now (y/N)?" choice
case "$choice" in
[Yy])
echo
echo
echo -e "${BOrange}The system is now rebooting...${Color_Off}"
if [ "$EUID" -ne 0 ]; then sudo shutdown -r now
else shutdown -r now; fi
sleep 60
exit 0;;
* ) SCRIPT_MENU;;
esac
}
}
NETDATA_INSTALL() {
if service_exists netdata; then