replacing direct reboot with script

This commit is contained in:
rootzoll 2019-12-11 14:03:52 +01:00
parent 0bb102b5fe
commit 2e7745cee9
9 changed files with 11 additions and 12 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 ..."

View File

@ -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