updated sync display

This commit is contained in:
rootzoll 2018-12-10 22:28:02 +01:00
parent 2395a61394
commit ca409f09cf
3 changed files with 9 additions and 5 deletions

View File

@ -17,7 +17,7 @@ if [ "$USER" != "pi" ]; then
fi
# display a 10s startup time
dialog --pause " Starting up & init ..." 8 58 10
dialog --pause " Starting services ..." 8 58 12
# DISPLAY LOOP
chain=""
@ -152,7 +152,6 @@ while :
# if LND is syncing or scanning
lndSynced=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} getinfo 2>/dev/null | jq -r '.synced_to_chain' | grep -c true)
if [ ${lndSynced} -eq 0 ]; then
echo "SYNC"
/home/admin/80scanLND.sh
sleep 20
continue

View File

@ -187,6 +187,12 @@ else
else
# if LND is syncing or scanning
lndSynced=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} getinfo 2>/dev/null | jq -r '.synced_to_chain' | grep -c true)
if [ ${lndSynced} -eq 0 ]; then
dialog --backtitle "RaspiBlitz - Setup" --title " RaspiBlitz is Syncing" --msgbox "Wait until RaspiBlitz is fully synced.\nSee progress on display ..." 3 42
fi
if [ ${runningRTL} -eq 1 ]; then
TITLE="Webinterface: http://${localip}:3000"
fi

View File

@ -1,5 +1,4 @@
source /home/admin/raspiblitz.info
source /mnt/hdd/raspiblitz.conf 2>/dev/null
source /mnt/hdd/raspiblitz.conf
### USER PI AUTOSTART (LCD Display)
localip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
@ -60,4 +59,4 @@ fi
# display progress to user
sleep 3
dialog --title " ${network} / ${chain} " --backtitle "RaspiBlitz (${name})" --infobox "${infoStr}" ${heigh} ${width}
dialog --title " ${network} / ${chain} " --backtitle "RaspiBlitz (${hostname})" --infobox "${infoStr}" ${heigh} ${width}