mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-26 11:37:19 +02:00
updated sync display
This commit is contained in:
@@ -17,7 +17,7 @@ if [ "$USER" != "pi" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# display a 10s startup time
|
# display a 10s startup time
|
||||||
dialog --pause " Starting up & init ..." 8 58 10
|
dialog --pause " Starting services ..." 8 58 12
|
||||||
|
|
||||||
# DISPLAY LOOP
|
# DISPLAY LOOP
|
||||||
chain=""
|
chain=""
|
||||||
@@ -152,7 +152,6 @@ while :
|
|||||||
# if LND is syncing or scanning
|
# 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)
|
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
|
if [ ${lndSynced} -eq 0 ]; then
|
||||||
echo "SYNC"
|
|
||||||
/home/admin/80scanLND.sh
|
/home/admin/80scanLND.sh
|
||||||
sleep 20
|
sleep 20
|
||||||
continue
|
continue
|
||||||
|
@@ -187,6 +187,12 @@ else
|
|||||||
|
|
||||||
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
|
if [ ${runningRTL} -eq 1 ]; then
|
||||||
TITLE="Webinterface: http://${localip}:3000"
|
TITLE="Webinterface: http://${localip}:3000"
|
||||||
fi
|
fi
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
source /home/admin/raspiblitz.info
|
source /mnt/hdd/raspiblitz.conf
|
||||||
source /mnt/hdd/raspiblitz.conf 2>/dev/null
|
|
||||||
|
|
||||||
### USER PI AUTOSTART (LCD Display)
|
### USER PI AUTOSTART (LCD Display)
|
||||||
localip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
localip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
||||||
@@ -60,4 +59,4 @@ fi
|
|||||||
|
|
||||||
# display progress to user
|
# display progress to user
|
||||||
sleep 3
|
sleep 3
|
||||||
dialog --title " ${network} / ${chain} " --backtitle "RaspiBlitz (${name})" --infobox "${infoStr}" ${heigh} ${width}
|
dialog --title " ${network} / ${chain} " --backtitle "RaspiBlitz (${hostname})" --infobox "${infoStr}" ${heigh} ${width}
|
Reference in New Issue
Block a user