From 6258dbf0a29f95dd7344756d9bd3ff0a7531a8d0 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Fri, 19 Oct 2018 00:19:29 +0200 Subject: [PATCH] next try to detect error --- home.admin/00infoLCD.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home.admin/00infoLCD.sh b/home.admin/00infoLCD.sh index f2e0432..61c1ff8 100755 --- a/home.admin/00infoLCD.sh +++ b/home.admin/00infoLCD.sh @@ -103,7 +103,8 @@ while : # RASPIBLITZ iS FULL SETUP # check if bitcoin is ready - clierror=$(sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 1>/dev/null 2>&1) + sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 1>/dev/null 2>>error.tmp + clierror=`cat error.tmp` if [ ${#clierror} -gt 0 ]; then l1="Waiting for ${network}d to get ready.\n" l1="Can take some time if devcie was off."