mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-01 08:28:20 +02:00
#1138 info about reboot
This commit is contained in:
parent
c4b21ea5a9
commit
492814781f
@ -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 ""
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user