add reboot info

This commit is contained in:
rootzoll 2021-09-22 20:42:22 +02:00
parent ffc280796b
commit 880db21993

View file

@ -172,6 +172,23 @@ do
#echo "# controlFinalDialog.sh"
/home/admin/setup.scripts/controlFinalDialog.sh
# exit for final setup reboot
state="reboot"
fi
# exit loop/script in case if system shutting down
if [ "${state}" == "reboot" ] || [ "${state}" == "shutdown" ]; then
clear
echo "***********************************************************"
echo "RaspiBlitz going to ${state}"
echo "***********************************************************"
if [ "${state}" == "reboot" ]; then
if [ "${message}" == "finalsetup" ]; then
echo "This is the final setup reboot - you will get disconnected."
fi
echo "SSH again into system with:"
echo "ssh admin@${localip}"
echo "***********************************************************"
fi
exit 0
fi
@ -246,23 +263,6 @@ do
fi
# exit loop/script in case if system shutting down
if [ "${state}" == "reboot" ] || [ "${state}" == "shutdown" ]; then
clear
echo "***********************************************************"
echo "RaspiBlitz going to ${state}"
echo "***********************************************************"
if [ "${state}" == "reboot" ]; then
if [ "${message}" == "finalsetup" ]; then
echo "This is the final setup reboot - you will get disconnected."
fi
echo "SSH again into system with:"
echo "ssh admin@${localip}"
echo "***********************************************************"
fi
exit 0
fi
done
echo "# menu loop received exit code ${exitMenuLoop} --> exit to terminal"