#1138 info about reboot

This commit is contained in:
rootzoll 2020-04-26 18:17:06 +02:00
parent c4b21ea5a9
commit 492814781f
2 changed files with 21 additions and 2 deletions

View File

@ -102,6 +102,7 @@ fi
# final Options
OPTIONS+=(REPAIR "Repair Options")
OPTIONS+=(UPDATE "Check/Prepare RaspiBlitz Update")
OPTIONS+=(REBOOT "Reboot RaspiBlitz")
OPTIONS+=(OFF "PowerOff RaspiBlitz")
OPTIONS+=(X "Console / Terminal")
@ -245,6 +246,12 @@ case $CHOICE in
UPDATE)
/home/admin/99updateMenu.sh
;;
REBOOT)
clear
echo ""
sudo /home/admin/XXshutdown.sh reboot
exit 0
;;
OFF)
clear
echo ""

View File

@ -123,8 +123,20 @@ patch()
case $CHOICE in
PATCH)
sudo -u admin /home/admin/XXsyncScripts.sh
echo "PRESS ENTER to return to PATCH MENU."
read key
sleep 4
whiptail --title " Patching/Syncing " --yes-button "Reboot" --no-button "Skip Rebbot" --yesno " OK patching/syncing done.
By default a reboot is advised.
Only skip reboot if you know
it will work without restart.
" 11 40
clear
if [ $? -eq 0 ]; then
echo "REBOOT"
else
echo "SKIP REBOOT"
fi
exit 1
;;
REPO)
echo "TODO"