mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-21 22:14:50 +02:00
wait for sync progress info
This commit is contained in:
parent
5ebe334e42
commit
8929a9714e
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 "
|
||||
|
Loading…
x
Reference in New Issue
Block a user