mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add shutdown and reboot messages
This commit is contained in:
parent
bb8e6ae7f0
commit
b4588c0473
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue