Update linupx-scripts.sh
This commit is contained in:
@@ -245,7 +245,9 @@ DRYRUN2() {
|
|||||||
GO_REBOOT() {
|
GO_REBOOT() {
|
||||||
[ "$EUID" -ne 0 ] && adm="SUDO " || adm=""
|
[ "$EUID" -ne 0 ] && adm="SUDO " || adm=""
|
||||||
if [ -f /opt/idssys/nodemgmt/.tmp/.skip ]; then
|
if [ -f /opt/idssys/nodemgmt/.tmp/.skip ]; then
|
||||||
read -n 1 -p "NodeMgmt Skip is currently enabled, should we disable that and reboot or just reboot (y/r)?" choice
|
echo -e "\n${idsCL[LightCyan]}NodeMgmt Skip is currently enabled: Should we disable that and reboot, or just reboot?${idsCL[Default]}"
|
||||||
|
echo -en "${idsCL[Cyan]}(${idsCL[LightGreen]}Y${idsCL[Cyan]})es / (${idsCL[LightGreen]}R${idsCL[Cyan]})eboot / any other key to cancel${idsCL[Default]}"
|
||||||
|
read -n 1 -p " : " choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
[Yy]) ${adm}/usr/local/bin/nmg skip reboot
|
[Yy]) ${adm}/usr/local/bin/nmg skip reboot
|
||||||
echo 'The system is now rebooting...'
|
echo 'The system is now rebooting...'
|
||||||
|
|||||||
Reference in New Issue
Block a user