Browse Source

updated sync display

dev
rootzoll 6 years ago
parent
commit
ca409f09cf
  1. 3
      home.admin/00infoLCD.sh
  2. 6
      home.admin/00mainMenu.sh
  3. 5
      home.admin/80scanLND.sh

3
home.admin/00infoLCD.sh

@ -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

6
home.admin/00mainMenu.sh

@ -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

5
home.admin/80scanLND.sh

@ -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}
Loading…
Cancel
Save