mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 09:50:19 +01:00
replacing direct reboot with script
This commit is contained in:
parent
0bb102b5fe
commit
2e7745cee9
@ -188,7 +188,7 @@ case $CHOICE in
|
||||
sudo -u bitcoin ${network}-cli stop
|
||||
echo "Press ENTER to Reboot."
|
||||
read key
|
||||
sudo shutdown -r now
|
||||
sudo /home/admin/XXshutdown.sh reboot
|
||||
else
|
||||
./00mainMenu.sh
|
||||
fi
|
||||
@ -201,10 +201,9 @@ case $CHOICE in
|
||||
sudo /home/admin/config.scripts/blitz.setpassword.sh
|
||||
noreboot=$?
|
||||
if [ "${noreboot}" = "0" ]; then
|
||||
sudo -u bitcoin ${network}-cli stop
|
||||
echo "Press ENTER to Reboot .."
|
||||
read key
|
||||
sudo shutdown -r now
|
||||
sudo /home/admin/XXshutdown.sh reboot
|
||||
else
|
||||
echo "Press ENTER to return to main menu .."
|
||||
read key
|
||||
@ -231,7 +230,7 @@ case $CHOICE in
|
||||
;;
|
||||
DELETE)
|
||||
sudo ./XXcleanHDD.sh
|
||||
sudo shutdown -r now
|
||||
sudo /home/admin/XXshutdown.sh reboot
|
||||
exit 0
|
||||
;;
|
||||
UPDATE)
|
||||
|
@ -418,7 +418,7 @@ case $CHOICE in
|
||||
;;
|
||||
DELETE)
|
||||
sudo /home/admin/XXcleanHDD.sh
|
||||
sudo shutdown -r now
|
||||
sudo /home/admin/XXshutdown.sh reboot
|
||||
exit 0
|
||||
;;
|
||||
X)
|
||||
|
@ -508,5 +508,5 @@ if [ ${needsReboot} -eq 1 ]; then
|
||||
# stop bitcoind
|
||||
sudo -u bitcoin ${network}-cli stop
|
||||
sleep 4
|
||||
sudo shutdown -r now
|
||||
sudo /home/admin/XXshutdown.sh reboot
|
||||
fi
|
||||
|
@ -54,4 +54,4 @@ else
|
||||
dialog --backtitle "RaspiBlitz" --msgbox "OK - SSH password A set.\nFINAL REBOOT IS NEEDED." 6 52
|
||||
fi
|
||||
|
||||
sudo shutdown -r now
|
||||
sudo /home/admin/XXshutdown.sh reboot
|
@ -296,7 +296,7 @@ if [ "${setupStep}" = "100" ]; then
|
||||
sudo chown -R bitcoin:bitcoin /mnt/hdd/${network}/
|
||||
sudo systemctl enable ${network}d
|
||||
echo "DONE - rebooting: sudo shutdown -r now"
|
||||
sudo shutdown -r now
|
||||
sudo /home/admin/XXshutdown.sh reboot
|
||||
else
|
||||
# set SetupState
|
||||
sudo sed -i "s/^setupStep=.*/setupStep=50/g" /home/admin/raspiblitz.info
|
||||
|
@ -495,6 +495,6 @@ System will restart now.
|
||||
echo "Setting the Name/Alias/Hostname .."
|
||||
sudo /home/admin/config.scripts/lnd.setname.sh ${hostname}
|
||||
|
||||
sudo shutdown -r now
|
||||
sudo /home/admin/XXshutdown.sh reboot
|
||||
|
||||
fi
|
||||
|
@ -38,4 +38,4 @@ echo "Setup done. Rebooting now."
|
||||
sudo -u bitcoin ${network}-cli stop
|
||||
|
||||
sleep 3
|
||||
sudo shutdown -r now
|
||||
sudo /home/admin/XXshutdown.sh reboot
|
@ -33,7 +33,7 @@ elif [ "${CHOICE}" = "RESYNC" ]; then
|
||||
dialog --pause "OK. System will reboot to activate changes." 8 58 8
|
||||
clear
|
||||
echo "rebooting .. (please wait)"
|
||||
sudo shutdown -r now
|
||||
sudo /home/admin/XXshutdown.sh reboot
|
||||
|
||||
elif [ "${CHOICE}" = "REINDEX" ]; then
|
||||
echo "Starting REINDEX ..."
|
||||
|
@ -100,4 +100,4 @@ sleep 4
|
||||
# clean logs (to prevent a false reindex detection)
|
||||
sudo rm /mnt/hdd/${network}/debug.log 2>/dev/null
|
||||
# reboot
|
||||
sudo shutdown -r now
|
||||
sudo /home/admin/XXshutdown.sh reboot
|
Loading…
Reference in New Issue
Block a user