This commit is contained in:
2025-09-15 20:54:50 -05:00
parent 71a840e867
commit c808871e38
2 changed files with 28 additions and 11 deletions

View File

@@ -2,7 +2,7 @@
action="$1" action="$1"
FOLDER='/opt/idssys/linupx' FOLDER='/opt/idssys/linupx'
VERS='6.60.44-08172025' VERS='6.60.45-09152025'
IPERFVER="3.15" IPERFVER="3.15"

View File

@@ -273,16 +273,33 @@ GO_REBOOT() {
fi fi
} }
SHUTDOWN() { SHUTDOWN() {
echo -e "\n${idsCL[LightCyan]}Are you sure you wish to shutdown?${idsCL[Default]}" if [ -f /opt/idssys/nodemgmt/.tmp/.skip ]; then
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]}" echo -e "\n${idsCL[LightCyan]}NodeMgmt Skip is currently enabled: Should we disable that and shutdown, or just shutdown?${idsCL[Default]}"
read -n 1 -p " : " choice echo -en " ${idsCL[White]}(${idsCL[LightGreen]}Y${idsCL[White]})es ${idsCL[LightCyan]}/${idsCL[White]} (${idsCL[LightGreen]}S${idsCL[White]})hutdown ${idsCL[LightCyan]}/${idsCL[White]} (${idsCL[LightGreen]}*${idsCL[White]})any other key to cancel${idsCL[Default]}"
case "$choice" in read -n 1 -p " : " choice
[Yy]) ${adm}shutdown -h now case "$choice" in
echo -e "\n\nThe system is now shutting down..." [Yy]) ${adm}/usr/local/bin/nmg skip shutdown
sleep 60 echo 'The system is now shutting down...'
exit 0;; sleep 60
* ) MAIN_MENU;; exit 0;;
esac [Rr]) ${adm}poweroff
echo 'The system is now shutting down...'
sleep 60
exit 0;;
* ) MAIN_MENU;;
esac
else
echo -e "\n${idsCL[LightCyan]}Are you sure you wish to shutdown?${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]) ${adm}shutdown -h now
echo -e "\n\nThe system is now shutting down..."
sleep 60
exit 0;;
* ) MAIN_MENU;;
esac
fi
} }
ENDISASU() { ENDISASU() {
if [ "$EUID" -ne 0 ]; then sudo dpkg-reconfigure --priority=low unattended-upgrades if [ "$EUID" -ne 0 ]; then sudo dpkg-reconfigure --priority=low unattended-upgrades