Browse Source

recover UI fix

dev
rootzoll 6 years ago
parent
commit
289880a4f0
  1. 6
      home.admin/00infoLCD.sh
  2. 4
      home.admin/_bootstrap.provision.sh

6
home.admin/00infoLCD.sh

@ -17,7 +17,7 @@ if [ "$USER" != "pi" ]; then
fi fi
# display a 10s startup time # display a 10s startup time
dialog --pause " Starting services ..." 8 58 12 dialog --pause " Starting ..." 8 58 12
# DISPLAY LOOP # DISPLAY LOOP
chain="" chain=""
@ -126,12 +126,12 @@ while :
if [ ${#message} -eq 0 ]; then if [ ${#message} -eq 0 ]; then
message="Setup in Progress" message="Setup in Progress"
fi fi
l1="Upgrade/Recovering/Provisioning Mode\n" l1="Upgrade/Recover/Provision\n"
l2="---> ${message}\n" l2="---> ${message}\n"
l3="Please keep running until auto-reboot." l3="Please keep running until auto-reboot."
boxwidth=$((${#localip} + 24)) boxwidth=$((${#localip} + 24))
dialog --backtitle "RaspiBlitz (${state})" --infobox "$l1$l2$l3" 5 ${boxwidth} dialog --backtitle "RaspiBlitz (${state})" --infobox "$l1$l2$l3" 5 ${boxwidth}
sleep 5 sleep 3
continue continue
fi fi

4
home.admin/_bootstrap.provision.sh

@ -35,7 +35,7 @@ source ${configFile}
########################## ##########################
echo "### BASIC SYSTEM SETTINGS ###" >> ${logFile} echo "### BASIC SYSTEM SETTINGS ###" >> ${logFile}
sudo sed -i "s/^message=.*/message='Setup System'/g" ${infoFile} 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}
@ -76,7 +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} sudo sed -i "s/^message=.*/message='Setup System ..'/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

Loading…
Cancel
Save