wait for sync progress info

This commit is contained in:
rootzoll 2021-07-16 13:41:57 +02:00
parent 5ebe334e42
commit 8929a9714e
3 changed files with 15 additions and 6 deletions

View File

@ -588,11 +588,6 @@ if [ ${isMounted} -eq 0 ]; then
###################################################
if [ "${setupPhase}" == "setup" ] || [ "${setupPhase}" == "migration" ]; then
echo "# Gather info on blockchain sync ..." >> $logFile
source <(sudo /home/admin/config.scripts/blitz.statusscan.sh)
if [ "${syncProgress}" == "" ]; then syncProgress="0"; fi
syncProgress=$(echo "${syncProgress}" | cut -d "." -f1)
echo "syncProgress=${syncProgress}" >> ${infoFile}
echo "# Go into WAIT LOOP for final setup dialog ..." >> $logFile
sed -i "s/^state=.*/state=waitfinal/g" ${infoFile}
sed -i "s/^message=.*/message='Setup Done'/g" ${infoFile}

View File

@ -26,8 +26,15 @@ 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
source <(sudo /home/admin/config.scripts/blitz.statusscan.sh)
syncProgressFull=$(echo "${syncProgress}" | cut -d "." -f1)
if [ "${syncProgressFull}" != "" ] && [ "${network}" == "bitcoin" ] && [ ${syncProgressFull} -lt 75 ]; then

View File

@ -45,6 +45,13 @@ Starting RaspiBlitz
Please wait ...
" 6 24
if [ "${eventID}" == "waitsync" ]; then
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
Preparing Blockchain Sync
Please wait ...
" 6 30
elif [ "${eventID}" == "reboot" ]; then
dialog --backtitle "${backtitle}" --cr-wrap --infobox "