Update linupx-scripts.sh
This commit is contained in:
@@ -360,10 +360,11 @@ REMOVEFLOPPY() {
|
|||||||
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}"
|
||||||
|
|
||||||
read -n 1 -p "Would you like to reboot now (y/N)?" choice
|
read -n 1 -p -e "${Blue}Would you like to reboot now (y/N)?" choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
[Yy])
|
[Yy])
|
||||||
echo 'The system is now rebooting...'
|
echo
|
||||||
|
echo '${BOrange}The system is now rebooting...${Color_Off}'
|
||||||
if [ "$EUID" -ne 0 ]; then sudo shutdown -r now
|
if [ "$EUID" -ne 0 ]; then sudo shutdown -r now
|
||||||
else shutdown -r now; fi
|
else shutdown -r now; fi
|
||||||
sleep 60
|
sleep 60
|
||||||
|
|||||||
Reference in New Issue
Block a user