mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-21 06:07:47 +02:00
wait for sync progress info
This commit is contained in:
@@ -588,11 +588,6 @@ if [ ${isMounted} -eq 0 ]; then
|
|||||||
###################################################
|
###################################################
|
||||||
|
|
||||||
if [ "${setupPhase}" == "setup" ] || [ "${setupPhase}" == "migration" ]; 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
|
echo "# Go into WAIT LOOP for final setup dialog ..." >> $logFile
|
||||||
sed -i "s/^state=.*/state=waitfinal/g" ${infoFile}
|
sed -i "s/^state=.*/state=waitfinal/g" ${infoFile}
|
||||||
sed -i "s/^message=.*/message='Setup Done'/g" ${infoFile}
|
sed -i "s/^message=.*/message='Setup Done'/g" ${infoFile}
|
||||||
|
@@ -26,8 +26,15 @@ 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
|
||||||
source <(sudo /home/admin/config.scripts/blitz.statusscan.sh)
|
|
||||||
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
|
||||||
|
|
||||||
|
@@ -45,6 +45,13 @@ Starting RaspiBlitz
|
|||||||
Please wait ...
|
Please wait ...
|
||||||
" 6 24
|
" 6 24
|
||||||
|
|
||||||
|
if [ "${eventID}" == "waitsync" ]; then
|
||||||
|
|
||||||
|
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
||||||
|
Preparing Blockchain Sync
|
||||||
|
Please wait ...
|
||||||
|
" 6 30
|
||||||
|
|
||||||
elif [ "${eventID}" == "reboot" ]; then
|
elif [ "${eventID}" == "reboot" ]; then
|
||||||
|
|
||||||
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
||||||
|
Reference in New Issue
Block a user