From 717c83b7281fec279c6d18d6d8b77d8c24601d87 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Mon, 11 Feb 2019 13:44:03 +0100 Subject: [PATCH] LCD info during recovering --- home.admin/00infoLCD.sh | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/home.admin/00infoLCD.sh b/home.admin/00infoLCD.sh index 55cf138..6949014 100755 --- a/home.admin/00infoLCD.sh +++ b/home.admin/00infoLCD.sh @@ -108,22 +108,6 @@ while : continue fi - # when setup is in progress - password has been changed - if [ ${setupStep} -lt 100 ]; then - l1="Login to your RaspiBlitz with:\n" - l2="ssh admin@${localip}\n" - l3="Use your Password A\n" - boxwidth=$((${#localip} + 24)) - sleep 3 - dialog --backtitle "RaspiBlitz ${codeVersion} ${localip} - Welcome (${setupStep})" --infobox "$l1$l2$l3" 5 ${boxwidth} - sleep 7 - continue - fi - - ########################### - # DISPLAY AFTER SETUP - ########################### - # check if recovering/upgrade is running if [ "${state}" = "recovering" ]; then if [ ${#message} -eq 0 ]; then @@ -160,6 +144,22 @@ while : continue fi + # when setup is in progress - password has been changed + if [ ${setupStep} -lt 100 ]; then + l1="Login to your RaspiBlitz with:\n" + l2="ssh admin@${localip}\n" + l3="Use your Password A\n" + boxwidth=$((${#localip} + 24)) + sleep 3 + dialog --backtitle "RaspiBlitz ${codeVersion} ${localip} - Welcome (${setupStep})" --infobox "$l1$l2$l3" 5 ${boxwidth} + sleep 7 + continue + fi + + ########################### + # DISPLAY AFTER SETUP + ########################### + # check if bitcoin is ready sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 1>/dev/null 2>error.tmp clienterror=`cat error.tmp` @@ -214,4 +214,4 @@ while : done -fi +fi \ No newline at end of file