mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-23 18:02:13 +02:00
reduce wait time during setup
This commit is contained in:
@@ -101,7 +101,11 @@ fi #end - when lighting is running
|
|||||||
bitcoinRunning=$(systemctl status ${network}d.service 2>/dev/null | grep -c running)
|
bitcoinRunning=$(systemctl status ${network}d.service 2>/dev/null | grep -c running)
|
||||||
if [ ${bitcoinRunning} -eq 0 ]; then
|
if [ ${bitcoinRunning} -eq 0 ]; then
|
||||||
# double check
|
# double check
|
||||||
dialog --pause " Double checking for ${network}d - please wait .." 8 58 120
|
seconds=120
|
||||||
|
if [ ${setupStep} -lt 60 ]; then
|
||||||
|
seconds=10
|
||||||
|
fi
|
||||||
|
dialog --pause " Double checking for ${network}d - please wait .." 8 58 ${seconds}
|
||||||
bitcoinRunning=$(${network}-cli getblockchaininfo | grep "initialblockdownload" -c)
|
bitcoinRunning=$(${network}-cli getblockchaininfo | grep "initialblockdownload" -c)
|
||||||
else
|
else
|
||||||
echo "${network} is running"
|
echo "${network} is running"
|
||||||
|
Reference in New Issue
Block a user