update
This commit is contained in:
@@ -273,16 +273,33 @@ GO_REBOOT() {
|
||||
fi
|
||||
}
|
||||
SHUTDOWN() {
|
||||
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
|
||||
if [ -f /opt/idssys/nodemgmt/.tmp/.skip ]; then
|
||||
echo -e "\n${idsCL[LightCyan]}NodeMgmt Skip is currently enabled: Should we disable that and shutdown, or just shutdown?${idsCL[Default]}"
|
||||
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]}"
|
||||
read -n 1 -p " : " choice
|
||||
case "$choice" in
|
||||
[Yy]) ${adm}/usr/local/bin/nmg skip shutdown
|
||||
echo 'The system is now shutting down...'
|
||||
sleep 60
|
||||
exit 0;;
|
||||
[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() {
|
||||
if [ "$EUID" -ne 0 ]; then sudo dpkg-reconfigure --priority=low unattended-upgrades
|
||||
|
||||
Reference in New Issue
Block a user