mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 02:09:15 +01:00
final setup reboot info
This commit is contained in:
parent
1de9431bb9
commit
228670f03e
@ -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"
|
||||
|
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user