Update linupx-scripts.sh

This commit is contained in:
2025-08-17 18:00:30 -05:00
parent 03032e78df
commit dc08a341b6

View File

@@ -260,11 +260,11 @@ GO_REBOOT() {
* ) MAIN_MENU;;
esac
else
read -n 1 -p "Are you sure you wish to reboot (y/N)?" choice
echo -e "\n${idsCL[LightCyan]}Are you sure you wish to reboot?${idsCL[Default]}"
echo -en " ${idsCL[White]}(${idsCL[LightGreen]}Y${idsCL[White]})es ${idsCL[LightCyan]}/${idsCL[White]} (${idsCL[LightGreen]}*${idsCL[White]})any other key to cancel${idsCL[Default]}"
read -n 1 -p " : " choice
case "$choice" in
[Yy]) if [ "$EUID" -ne 0 ]; then sudo shutdown -r now
else shutdown -r now
fi
[Yy]) ${adm}shutdown -r now
echo 'The system is now rebooting...'
sleep 60
exit 0;;
@@ -275,9 +275,7 @@ GO_REBOOT() {
SHUTDOWN() {
read -n 1 -p "Are you sure you wish to shutdown (y/N)?" choice
case "$choice" in
[Yy]) if [ "$EUID" -ne 0 ]; then sudo shutdown -h now
else shutdown -h now
fi
[Yy]) ${adm}shutdown -h now
echo 'The system is now shutting down...'
sleep 60
exit 0;;