mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-02 12:12:51 +02:00
Final Setup Reboot
This commit is contained in:
@@ -645,12 +645,17 @@ if [ ${isMounted} -eq 0 ]; then
|
|||||||
# signal that setup phas is over
|
# signal that setup phas is over
|
||||||
sed -i "s/^setupPhase=.*/setupPhase='done'/g" ${infoFile}
|
sed -i "s/^setupPhase=.*/setupPhase='done'/g" ${infoFile}
|
||||||
|
|
||||||
|
|
||||||
|
########################################
|
||||||
|
# AFTER SETUP REBOOT
|
||||||
|
# touchscreen activation, start with configured SWAP, fix LCD text bug
|
||||||
|
|
||||||
# if touchscreen is on (on recover/update) --> reboot now to activate touchscreen
|
# if touchscreen is on (on recover/update) --> reboot now to activate touchscreen
|
||||||
source ${configFile}
|
source ${configFile}
|
||||||
if [ "${touchscreen}" == "1" ] || [ "${touchscreen}" == "on" ]; then
|
sudo cp $/home/admin/raspiblitz.log $/home/admin/raspiblitz.log.setup
|
||||||
sudo cp ${/home/admin/raspiblitz.log} ${/home/admin/raspiblitz.log}.setup
|
/home/admin/config.scripts/blitz.shutdown.sh reboot finalsetup
|
||||||
/home/admin/config.scripts/blitz.shutdown.sh reboot
|
sleep 100
|
||||||
fi
|
exit 0
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
@@ -22,7 +22,7 @@ if [ "$1" = "reboot" ]; then
|
|||||||
shutdownParams="-h -r now"
|
shutdownParams="-h -r now"
|
||||||
echo "It will then reboot again automatically."
|
echo "It will then reboot again automatically."
|
||||||
sed -i "s/^state=.*/state=reboot/g" ${infoFile}
|
sed -i "s/^state=.*/state=reboot/g" ${infoFile}
|
||||||
sed -i "s/^message=.*/message=''/g" ${infoFile}
|
sed -i "s/^message=.*/message='$2'/g" ${infoFile}
|
||||||
else
|
else
|
||||||
shutdownParams="-h now"
|
shutdownParams="-h now"
|
||||||
echo "Then wait 5 seconds and disconnect power."
|
echo "Then wait 5 seconds and disconnect power."
|
||||||
@@ -37,19 +37,24 @@ echo "-----------------------------------------------"
|
|||||||
echo "stop electrs - please wait .."
|
echo "stop electrs - please wait .."
|
||||||
sudo systemctl stop electrs 2>/dev/null
|
sudo systemctl stop electrs 2>/dev/null
|
||||||
|
|
||||||
# stopping lnd
|
# stopping lightning
|
||||||
echo "stop lightning - please wait .."
|
echo "stop lightning - please wait .."
|
||||||
sudo systemctl stop lnd 2>/dev/null
|
sudo systemctl stop lnd 2>/dev/null
|
||||||
sudo systemctl stop lightningd 2>/dev/null
|
sudo systemctl stop lightningd 2>/dev/null
|
||||||
|
sudo systemctl stop tlnd 2>/dev/null
|
||||||
|
sudo systemctl stop tlightningd 2>/dev/null
|
||||||
|
sudo systemctl stop slnd 2>/dev/null
|
||||||
|
sudo systemctl stop slightningd 2>/dev/null
|
||||||
|
|
||||||
# stopping bitcoin (thru cli)
|
# stopping bitcoin (thru cli)
|
||||||
echo "stop ${network}d (1) - please wait .."
|
echo "stop ${network}d (1) - please wait .."
|
||||||
sudo -u bitcoin ${network}-cli stop 2>/dev/null
|
timeout 10 sudo -u bitcoin ${network}-cli stop 2>/dev/null
|
||||||
sleep 10
|
|
||||||
|
|
||||||
# stopping bitcoind (thru systemd)
|
# stopping bitcoind (thru systemd)
|
||||||
echo "stop ${network}d (2) - please wait .."
|
echo "stop ${network}d (2) - please wait .."
|
||||||
sudo systemctl stop ${network}d 2>/dev/null
|
sudo systemctl stop ${network}d 2>/dev/null
|
||||||
|
sudo systemctl stop t${network}d 2>/dev/null
|
||||||
|
sudo systemctl stop s${network}d 2>/dev/null
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
# make sure drives are synced before shutdown
|
# make sure drives are synced before shutdown
|
||||||
|
@@ -52,6 +52,12 @@ Preparing Blockchain Sync
|
|||||||
Please wait ...
|
Please wait ...
|
||||||
" 6 30
|
" 6 30
|
||||||
|
|
||||||
|
elif [ "${eventID}" == "reboot" ] && [ "${contentString}" == "finalsetup" ]; then
|
||||||
|
|
||||||
|
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
||||||
|
Final Setup Reboot
|
||||||
|
" 5 23
|
||||||
|
|
||||||
elif [ "${eventID}" == "reboot" ]; then
|
elif [ "${eventID}" == "reboot" ]; then
|
||||||
|
|
||||||
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
||||||
|
Reference in New Issue
Block a user