diff --git a/home.admin/00raspiblitz.sh b/home.admin/00raspiblitz.sh index 8cd4d7e4d..123ccbf78 100755 --- a/home.admin/00raspiblitz.sh +++ b/home.admin/00raspiblitz.sh @@ -172,9 +172,26 @@ do #echo "# controlFinalDialog.sh" /home/admin/setup.scripts/controlFinalDialog.sh # exit for final setup reboot - exit 0 + 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 + ##################################### # INITIAL BLOCKCHAIN SYNC (SUBLOOP) ##################################### @@ -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"