diff --git a/home.admin/_bootstrap.sh b/home.admin/_bootstrap.sh index 0f3b05f8a..995cefd29 100755 --- a/home.admin/_bootstrap.sh +++ b/home.admin/_bootstrap.sh @@ -582,6 +582,15 @@ if [ ${isMounted} -eq 0 ]; then # mark provision process done sed -i "s/^message=.*/message='Provision Done'/g" ${infoFile} + # wait until syncProgress is available (neeed for final dialogs) + while [ "${syncProgress}" == "" ] + do + echo "# Waiting for blockchain sync progress info ..." >> $logFile + source <(sudo /home/admin/config.scripts/blitz.statusscan.sh) + sed -i "s/^state=.*/state=waitsync/g" ${infoFile} + sleep 2 + done + ################################################### # WAIT LOOP: AFTER FRESH SETUP, MIGRATION # successfull update & recover can skip this diff --git a/home.admin/setup.scripts/controlFinalDialog.sh b/home.admin/setup.scripts/controlFinalDialog.sh index 10e42b435..618a1e7d4 100755 --- a/home.admin/setup.scripts/controlFinalDialog.sh +++ b/home.admin/setup.scripts/controlFinalDialog.sh @@ -26,14 +26,6 @@ fi ############################################ # BLOCKCHAIN INFO & OPTIONS -# wait until syncProgress is available -while [ "${syncProgress}" == "" ] -do - source <(sudo /home/admin/config.scripts/blitz.statusscan.sh) - /home/admin/setup.scripts/eventInfoWait.sh "waitsync" "waitloop" ssh - sleep 2 -done - # get fresh data syncProgressFull=$(echo "${syncProgress}" | cut -d "." -f1) if [ "${syncProgressFull}" != "" ] && [ "${network}" == "bitcoin" ] && [ ${syncProgressFull} -lt 75 ]; then