diff --git a/home.admin/00infoLCD.sh b/home.admin/00infoLCD.sh index 2727b61f..8db9bdf2 100755 --- a/home.admin/00infoLCD.sh +++ b/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 diff --git a/home.admin/00mainMenu.sh b/home.admin/00mainMenu.sh index 35919aea..efb13fba 100755 --- a/home.admin/00mainMenu.sh +++ b/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 diff --git a/home.admin/80scanLND.sh b/home.admin/80scanLND.sh index 99fae621..49f15b25 100755 --- a/home.admin/80scanLND.sh +++ b/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} \ No newline at end of file +dialog --title " ${network} / ${chain} " --backtitle "RaspiBlitz (${hostname})" --infobox "${infoStr}" ${heigh} ${width} \ No newline at end of file