mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 06:48:00 +01:00
try fix final reboot bug
This commit is contained in:
parent
477da8e1f7
commit
a2656ac0ad
3 changed files with 6 additions and 3 deletions
|
@ -171,7 +171,8 @@ do
|
|||
# push to final setup gui dialogs
|
||||
#echo "# controlFinalDialog.sh"
|
||||
/home/admin/setup.scripts/controlFinalDialog.sh
|
||||
continue
|
||||
# exit for final setup reboot
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#####################################
|
||||
|
|
|
@ -548,7 +548,7 @@ if [ ${isMounted} -eq 0 ]; then
|
|||
source ${setupFile}
|
||||
cat ${setupFile} >> ${logFile}
|
||||
|
||||
# make sure basic info id in raspiblitz.info
|
||||
# make sure basic info is in raspiblitz.info
|
||||
echo "# Update ${infoFile} " >> ${logFile}
|
||||
sudo sed -i "s/^network=.*/network=${network}/g" ${infoFile}
|
||||
sudo sed -i "s/^chain=.*/chain=${chain}/g" ${infoFile}
|
||||
|
@ -666,7 +666,7 @@ if [ ${isMounted} -eq 0 ]; then
|
|||
fi
|
||||
|
||||
source ${infoFile}
|
||||
echo "WAIT LOOP: FINAL SETUP .. see controlFinalDialog.sh" >> $logFile
|
||||
echo "WAIT LOOP: FINAL SETUP .. see controlFinalDialog.sh network(${network})" >> $logFile
|
||||
until [ "${state}" == "ready" ]
|
||||
do
|
||||
|
||||
|
@ -693,6 +693,7 @@ if [ ${isMounted} -eq 0 ]; then
|
|||
echo "# Updating service ${network}d.service ..." >> $logFile
|
||||
sudo sed -i "s/^Wants=.*/Wants=bootstrap.service/g" /etc/systemd/system/${network}d.service
|
||||
sudo sed -i "s/^After=.*/After=bootstrap.service/g" /etc/systemd/system/${network}d.service
|
||||
sudo systemctl daemon-reload
|
||||
|
||||
# delete setup data from RAM
|
||||
sudo rm ${setupFile}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
# https://github.com/Ride-The-Lightning/RTL
|
||||
RTLVERSION="v0.11.2"
|
||||
|
||||
# check and load raspiblitz config
|
||||
|
|
Loading…
Add table
Reference in a new issue