Recovering LCD Info

This commit is contained in:
rootzoll 2018-12-12 16:12:30 +01:00
parent d609b4ac85
commit 553bc5d6b4
3 changed files with 20 additions and 5 deletions

View File

@ -69,10 +69,6 @@ while :
setupStep=0
fi
###########################
# DISPLAY DURING SETUP
###########################
# before setup even started
if [ ${setupStep} -eq 0 ]; then
@ -125,6 +121,20 @@ while :
# DISPLAY AFTER SETUP
###########################
# check if recovering/upgrade is running
if [ "${state}" = "recovering" ]; then
if [ ${#message} -eq 0 ]; then
message="Setup in Progress"
fi
l1="Upgrade/Recovering/Provisioning Mode\n"
l2="---> ${message}\n"
l3="Please keep running until auto-reboot."
boxwidth=$((${#localip} + 24))
dialog --backtitle "RaspiBlitz (${state})" --infobox "$l1$l2$l3" 5 ${boxwidth}
sleep 5
continue
fi
# 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`

View File

@ -35,6 +35,7 @@ source ${configExists}
##########################
echo "### BASIC SYSTEM SETTINGS ###" >> ${logFile}
sudo sed -i "s/^message=.*/message='Setup System'/g" ${infoFile}
# set hostname data
echo "Setting lightning alias: ${hostname}" >> ${logFile}
@ -75,6 +76,7 @@ sudo chmod +x /etc/systemd/system/lnd.service >> ${logFile} 2>&1
sudo systemctl enable lnd >> ${logFile} 2>&1
# finish setup (SWAP, Benus, Firewall, Update, ..)
sudo sed -i "s/^message=.*/message='Finishing Setup'/g" ${infoFile}
/home/admin/90finishSetup.sh >> ${logFile} 2>&1
# set the local network hostname
@ -88,6 +90,7 @@ fi
##########################
# PROVISIONING SERVICES
##########################
sudo sed -i "s/^message=.*/message='Installing Services'/g" ${infoFile}
echo "### RUNNING PROVISIONING SERVICES ###" >> ${logFile}
@ -136,4 +139,5 @@ else
echo "Provisioning TOR - keep default" >> ${logFile}
fi
sudo sed -i "s/^message=.*/message='Setup Done'/g" ${infoFile}
echo "END Provisioning" >> ${logFile}

View File

@ -40,6 +40,7 @@ echo "Resetting the InfoFile: ${infoFile}"
echo "state=starting" > $infoFile
echo "network=" >> $infoFile
echo "chain=" >> $infoFile
echo "message=" >> $infoFile
sudo chmod 777 ${infoFile}
################################