add shutdown and reboot messages

This commit is contained in:
Tobias Powalowski 2023-07-27 08:54:25 +02:00
parent bb8e6ae7f0
commit b4588c0473
2 changed files with 4 additions and 0 deletions

View file

@ -82,11 +82,13 @@ _exit() {
_dialog --infobox "Rebooting in 10 seconds...\nDon't forget to remove the boot medium!" 4 50 _dialog --infobox "Rebooting in 10 seconds...\nDon't forget to remove the boot medium!" 4 50
sleep 10 sleep 10
clear clear
wall -n "Rebooting the system..."
reboot reboot
elif [[ "${_EXIT}" == "3" ]]; then elif [[ "${_EXIT}" == "3" ]]; then
_dialog --infobox "Powering off in 10 seconds...\nDon't forget to remove the boot medium!" 4 50 _dialog --infobox "Powering off in 10 seconds...\nDon't forget to remove the boot medium!" 4 50
sleep 10 sleep 10
clear clear
wall -n "Powering off the system..."
poweroff poweroff
fi fi
} }

View file

@ -278,11 +278,13 @@ _mainmenu() {
_dialog --infobox "Rebooting in 10 seconds...\nDon't forget to remove the boot medium!" 4 50 _dialog --infobox "Rebooting in 10 seconds...\nDon't forget to remove the boot medium!" 4 50
sleep 10 sleep 10
clear clear
wall "Rebooting the system..."
reboot reboot
elif [[ "${_EXIT}" == "3" ]]; then elif [[ "${_EXIT}" == "3" ]]; then
_dialog --infobox "Powering off in 10 seconds...\nDon't forget to remove the boot medium!" 4 50 _dialog --infobox "Powering off in 10 seconds...\nDon't forget to remove the boot medium!" 4 50
sleep 10 sleep 10
clear clear
wall "Powering off the system..."
poweroff poweroff
fi fi
;; ;;