From dc08a341b626786ff23afc21955c40539ab3ec3d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 17 Aug 2025 18:00:30 -0500 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 41b4f6c..eba4ae9 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -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;;