synccreen

This commit is contained in:
rootzoll
2021-05-25 19:30:29 -05:00
parent 23f850e0bf
commit 118b7c0872

View File

@@ -98,17 +98,31 @@ do
fi
#####################################
# MAIN MENU
# MAIN MENU or BLOCKCHAIN SYNC
#####################################
# when setup is done & state is ready .. jump to main menu
if [ "${setupPhase}" == "done" ] && [ "${state}" == "ready" ]; then
# push user to main menu
# TODO: move data gathering into background and get thru raspiblitz.info/redis
source <(sudo /home/admin/config.scripts/blitz.statusscan.sh)
if [ "${initialSync}" == "1" ] && [ "${syncedToChain}" == "0" ]; then
# BLOCKCHAIN SYNC SCREEN
echo "Sync: ${syncProgress}"
sleep 4
else
# MAIN MENU
/home/admin/00mainMenu.sh
# use the exit code from main menu as signal if menu loop should exited
# 0 = continue loop / everything else = break loop and exit to terminal
exitMenuLoop=$?
if [ "${exitMenuLoop}" != "0" ]; then break; fi
fi
fi
#####################################