mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 04:37:19 +02:00
wait for syncprogress info
This commit is contained in:
@@ -582,6 +582,15 @@ if [ ${isMounted} -eq 0 ]; then
|
|||||||
# mark provision process done
|
# mark provision process done
|
||||||
sed -i "s/^message=.*/message='Provision Done'/g" ${infoFile}
|
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
|
# WAIT LOOP: AFTER FRESH SETUP, MIGRATION
|
||||||
# successfull update & recover can skip this
|
# successfull update & recover can skip this
|
||||||
|
@@ -26,14 +26,6 @@ fi
|
|||||||
############################################
|
############################################
|
||||||
# BLOCKCHAIN INFO & OPTIONS
|
# 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
|
# get fresh data
|
||||||
syncProgressFull=$(echo "${syncProgress}" | cut -d "." -f1)
|
syncProgressFull=$(echo "${syncProgress}" | cut -d "." -f1)
|
||||||
if [ "${syncProgressFull}" != "" ] && [ "${network}" == "bitcoin" ] && [ ${syncProgressFull} -lt 75 ]; then
|
if [ "${syncProgressFull}" != "" ] && [ "${network}" == "bitcoin" ] && [ ${syncProgressFull} -lt 75 ]; then
|
||||||
|
Reference in New Issue
Block a user