allow unlock while waiting to get ready

This commit is contained in:
rootzoll 2018-12-10 23:22:54 +01:00
parent 5b97661563
commit f1e0afda95

View File

@ -113,6 +113,11 @@ waitUntilChainNetworkIsReady()
dialog --backtitle "RaspiBlitz ${localip} - Welcome" --infobox "$l1$l2$l3" 5 ${boxwidth}
sleep 5
else
locked=$(sudo tail -n 1 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep -c unlock)
if [ ${locked} -gt 0 ]; then
#return from wait loop, lets unlock and then it will return to this script
return
fi
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
./80scanLND.sh