diff --git a/home.admin/10setupBlitz.sh b/home.admin/10setupBlitz.sh index e19069b..c12b5fe 100755 --- a/home.admin/10setupBlitz.sh +++ b/home.admin/10setupBlitz.sh @@ -11,6 +11,22 @@ if [ ${isMainChain} -gt 0 ];then chain="main" fi +# get setup progress +setupStep=$(sudo -u admin cat /home/admin/.setup) +if [ ${#setupStep} -eq 0 ];then + setupStep=0 +fi + +# if setup if ready --> REBOOT +if [ ${setupStep} -gt 89 ];then + echo "" + echo "*** SETUP OK ---> REBOOT ***" + echo "PRESS ENTER .. to start the final reboot." + read key + sudo shutdown -r now + exit 1 +fi + # CHECK WHAT IS ALREADY WORKING # check list from top down - so ./10setupBlitz.sh # and re-enters the setup process at the correct spot