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;; * ) MAIN_MENU;;
esac esac
else 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 case "$choice" in
[Yy]) if [ "$EUID" -ne 0 ]; then sudo shutdown -r now [Yy]) ${adm}shutdown -r now
else shutdown -r now
fi
echo 'The system is now rebooting...' echo 'The system is now rebooting...'
sleep 60 sleep 60
exit 0;; exit 0;;
@@ -275,9 +275,7 @@ GO_REBOOT() {
SHUTDOWN() { SHUTDOWN() {
read -n 1 -p "Are you sure you wish to shutdown (y/N)?" choice read -n 1 -p "Are you sure you wish to shutdown (y/N)?" choice
case "$choice" in case "$choice" in
[Yy]) if [ "$EUID" -ne 0 ]; then sudo shutdown -h now [Yy]) ${adm}shutdown -h now
else shutdown -h now
fi
echo 'The system is now shutting down...' echo 'The system is now shutting down...'
sleep 60 sleep 60
exit 0;; exit 0;;