mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-28 04:26:28 +02:00
more details on start up
This commit is contained in:
@@ -154,22 +154,11 @@ while :
|
|||||||
if [ ${#clienterror} -gt 0 ]; then
|
if [ ${#clienterror} -gt 0 ]; then
|
||||||
boxwidth=40
|
boxwidth=40
|
||||||
l1="Waiting for ${network}d to get ready.\n"
|
l1="Waiting for ${network}d to get ready.\n"
|
||||||
l2="---> Starting Up\n"
|
l2="---> ${clienterror/error*:/}\n"
|
||||||
l3="Can take longer if device was off."
|
l3="Can take longer if device was off."
|
||||||
isVerifying=$(echo "${clienterror}" | grep -c 'Verifying blocks')
|
uptimeSeconds="$(cat /proc/uptime | grep -o '^[0-9]\+')"
|
||||||
isLoadingBlockIndex=$(echo "${clienterror}" | grep -c 'Loading block index')
|
if [ ${uptimeSeconds} -gt 600 ]; then
|
||||||
if [ ${isVerifying} -gt 0 ]; then
|
l3="!!Please login for more details!!"
|
||||||
l2="---> Verifying Blocks\n"
|
|
||||||
elif [ ${isLoadingBlockIndex} -gt 0 ]; then
|
|
||||||
l2="---> Loading Block Index\n"
|
|
||||||
else
|
|
||||||
# when takes longer display error
|
|
||||||
uptimeSeconds="$(cat /proc/uptime | grep -o '^[0-9]\+')"
|
|
||||||
if [ ${uptimeSeconds} -gt 30 ]; then
|
|
||||||
clienterror=$(echo "${clienterror/error*:/}")
|
|
||||||
l2="---> ${clienterror}\n"
|
|
||||||
boxwidth=70
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
dialog --backtitle "RaspiBlitz ${codeVersion} (${localip}) - Welcome Back" --infobox "$l1$l2$l3" 5 ${boxwidth}
|
dialog --backtitle "RaspiBlitz ${codeVersion} (${localip}) - Welcome Back" --infobox "$l1$l2$l3" 5 ${boxwidth}
|
||||||
sleep 5
|
sleep 5
|
||||||
|
@@ -105,14 +105,14 @@ waitUntilChainNetworkIsReady()
|
|||||||
if [ ${#clienterror} -gt 0 ]; then
|
if [ ${#clienterror} -gt 0 ]; then
|
||||||
boxwidth=40
|
boxwidth=40
|
||||||
l1="Waiting for ${network}d to get ready.\n"
|
l1="Waiting for ${network}d to get ready.\n"
|
||||||
l2="---> Starting Up\n"
|
l2="---> ${clienterror/error*:/}\n"
|
||||||
l3="Can take longer if device was off."
|
l3="Can take longer if device was off."
|
||||||
isVerifying=$(echo "${clienterror}" | grep -c 'Verifying blocks')
|
uptimeSeconds="$(cat /proc/uptime | grep -o '^[0-9]\+')"
|
||||||
if [ ${isVerifying} -gt 0 ]; then
|
# after 2 min show complete long string (full detail)
|
||||||
l2="---> Verifying Blocks\n"
|
if [ ${uptimeSeconds} -gt 120 ]; then
|
||||||
else
|
boxwidth=80
|
||||||
l2="---> ${clienterror}\n"
|
l2="${clienterror}\n"
|
||||||
boxwidth=70
|
l3="CTRL+C => terminal"
|
||||||
fi
|
fi
|
||||||
dialog --backtitle "RaspiBlitz ${localip} - Welcome" --infobox "$l1$l2$l3" 5 ${boxwidth}
|
dialog --backtitle "RaspiBlitz ${localip} - Welcome" --infobox "$l1$l2$l3" 5 ${boxwidth}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user