exit terminal and return to setup

This commit is contained in:
rootzoll 2021-05-05 01:16:46 +02:00
parent 6fcbf7d074
commit 7efa541482
3 changed files with 24 additions and 29 deletions

View file

@ -318,43 +318,35 @@ case $CHOICE in
/home/admin/99updateMenu.sh
;;
REBOOT)
clear
confirmation "Are you sure?" "Reboot" "Cancel" true 7 40
confirmationReboot=$?
if [ $confirmationReboot -eq 0 ]; then
clear
confirmation "Are you sure?" "Reboot" "Cancel" true 7 40
confirmationReboot=$?
if [ $confirmationReboot -eq 0 ]; then
clear
echo ""
sudo /home/admin/XXshutdown.sh reboot
exit 0
fi
exit 1
fi
;;
OFF)
clear
confirmation "Are you sure?" "PowerOff" "Cancel" true 7 40
confirmationShutdown=$?
if [ $confirmationShutdown -eq 0 ]; then
clear
confirmation "Are you sure?" "PowerOff" "Cancel" true 7 40
confirmationShutdown=$?
if [ $confirmationShutdown -eq 0 ]; then
clear
echo ""
sudo /home/admin/XXshutdown.sh
exit 0
fi
exit 1
fi
;;
DELETE)
sudo /home/admin/XXcleanHDD.sh
sudo /home/admin/XXshutdown.sh reboot
exit 0
exit 1
;;
*)
clear
echo "***********************************"
echo "* RaspiBlitz Commandline"
echo "* Here be dragons .. have fun :)"
echo "***********************************"
echo "Bitcoin command line options: bitcoin-cli help"
echo "LND command line options: lncli -h"
echo "Back to main menu use command: raspiblitz"
echo
exit 0
exit 1
esac
# forward exit code of submenu to outside loop

View file

@ -151,6 +151,16 @@ do
done
echo "# mainmenu signaled exit code '${exitMenuLoop}' --> exit to terminal"
echo "***********************************"
echo "* RaspiBlitz Commandline"
echo "* Here be dragons .. have fun :)"
echo "***********************************"
if [ "${setupPhase}" == "done" ]
echo "Bitcoin command line options: bitcoin-cli help"
echo "LND command line options: lncli -h"
fi
echo "Back to menus use command: raspiblitz"
echo
exit 0
################# TODO: MOVE PARTS BELOW TO APROPIATE NEW PLACE

View file

@ -23,13 +23,6 @@ function menu() {
./00mainMenu.sh
}
# command: setup
# calls the setup process
function setup() {
cd /home/admin
./setup.scripts/setupDialogControl.sh
}
# command: repair
# calls directly the repair menu
function repair() {