mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 02:09:15 +01:00
Recovering LCD Info
This commit is contained in:
parent
d609b4ac85
commit
553bc5d6b4
@ -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`
|
||||
|
@ -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}
|
@ -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}
|
||||
|
||||
################################
|
||||
|
Loading…
Reference in New Issue
Block a user