final setup reboot info

This commit is contained in:
rootzoll 2021-09-09 00:04:37 +02:00
parent 1de9431bb9
commit 228670f03e
2 changed files with 24 additions and 15 deletions

View File

@ -232,20 +232,6 @@ do
fi
echo "command to shutdown --> off"
exit 1
elif [ "${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
else
# every other state just push as event to SSH frontend
/home/admin/setup.scripts/eventInfoWait.sh "${state}" "${message}"
@ -253,6 +239,23 @@ 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"

View File

@ -38,13 +38,19 @@ backtitle="RaspiBlitz ${codeVersion} / ${eventID} / ${localip}"
# 1) WELL DEFINED EVENTS
################################################
if [ "${eventID}" == "starting" ] || [ "${eventID}" == "system-init" ] || [ "${eventID}" == "ready" ]; then
if [ "${eventID}" == "starting" ] || [ "${eventID}" == "system-init" ]; then
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
Starting RaspiBlitz
Please wait ...
" 6 24
elif [ "${eventID}" == "ready" ]; then
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
Please wait ...
" 5 20
elif [ "${eventID}" == "waitsync" ]; then
dialog --backtitle "${backtitle}" --cr-wrap --infobox "