mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 13:02:21 +02:00
synccreen
This commit is contained in:
@@ -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
|
||||
/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
|
||||
|
||||
# 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
|
||||
|
||||
#####################################
|
||||
|
Reference in New Issue
Block a user