mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-10 04:43:10 +02:00
Recovering LCD Info
This commit is contained in:
@@ -69,10 +69,6 @@ while :
|
|||||||
setupStep=0
|
setupStep=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###########################
|
|
||||||
# DISPLAY DURING SETUP
|
|
||||||
###########################
|
|
||||||
|
|
||||||
# before setup even started
|
# before setup even started
|
||||||
if [ ${setupStep} -eq 0 ]; then
|
if [ ${setupStep} -eq 0 ]; then
|
||||||
|
|
||||||
@@ -125,6 +121,20 @@ while :
|
|||||||
# DISPLAY AFTER SETUP
|
# 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
|
# check if bitcoin is ready
|
||||||
sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 1>/dev/null 2>error.tmp
|
sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 1>/dev/null 2>error.tmp
|
||||||
clienterror=`cat error.tmp`
|
clienterror=`cat error.tmp`
|
||||||
|
@@ -35,6 +35,7 @@ source ${configExists}
|
|||||||
##########################
|
##########################
|
||||||
|
|
||||||
echo "### BASIC SYSTEM SETTINGS ###" >> ${logFile}
|
echo "### BASIC SYSTEM SETTINGS ###" >> ${logFile}
|
||||||
|
sudo sed -i "s/^message=.*/message='Setup System'/g" ${infoFile}
|
||||||
|
|
||||||
# set hostname data
|
# set hostname data
|
||||||
echo "Setting lightning alias: ${hostname}" >> ${logFile}
|
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
|
sudo systemctl enable lnd >> ${logFile} 2>&1
|
||||||
|
|
||||||
# finish setup (SWAP, Benus, Firewall, Update, ..)
|
# finish setup (SWAP, Benus, Firewall, Update, ..)
|
||||||
|
sudo sed -i "s/^message=.*/message='Finishing Setup'/g" ${infoFile}
|
||||||
/home/admin/90finishSetup.sh >> ${logFile} 2>&1
|
/home/admin/90finishSetup.sh >> ${logFile} 2>&1
|
||||||
|
|
||||||
# set the local network hostname
|
# set the local network hostname
|
||||||
@@ -88,6 +90,7 @@ fi
|
|||||||
##########################
|
##########################
|
||||||
# PROVISIONING SERVICES
|
# PROVISIONING SERVICES
|
||||||
##########################
|
##########################
|
||||||
|
sudo sed -i "s/^message=.*/message='Installing Services'/g" ${infoFile}
|
||||||
|
|
||||||
echo "### RUNNING PROVISIONING SERVICES ###" >> ${logFile}
|
echo "### RUNNING PROVISIONING SERVICES ###" >> ${logFile}
|
||||||
|
|
||||||
@@ -136,4 +139,5 @@ else
|
|||||||
echo "Provisioning TOR - keep default" >> ${logFile}
|
echo "Provisioning TOR - keep default" >> ${logFile}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sudo sed -i "s/^message=.*/message='Setup Done'/g" ${infoFile}
|
||||||
echo "END Provisioning" >> ${logFile}
|
echo "END Provisioning" >> ${logFile}
|
@@ -40,6 +40,7 @@ echo "Resetting the InfoFile: ${infoFile}"
|
|||||||
echo "state=starting" > $infoFile
|
echo "state=starting" > $infoFile
|
||||||
echo "network=" >> $infoFile
|
echo "network=" >> $infoFile
|
||||||
echo "chain=" >> $infoFile
|
echo "chain=" >> $infoFile
|
||||||
|
echo "message=" >> $infoFile
|
||||||
sudo chmod 777 ${infoFile}
|
sudo chmod 777 ${infoFile}
|
||||||
|
|
||||||
################################
|
################################
|
||||||
|
Reference in New Issue
Block a user