Browse Source

#524 added Update to main menu

master
Christian Rotzoll 6 years ago
parent
commit
61cdc02501
  1. 12
      home.admin/00mainMenu.sh
  2. 4
      home.admin/99checkUpdate.sh

12
home.admin/00mainMenu.sh

@ -377,9 +377,10 @@ else
fi fi
# final Options # final Options
OPTIONS+=(HARDWARE "Run Hardwaretest") OPTIONS+=(HARDWARE "Run Hardwaretest")
OPTIONS+=(SOFTWARE "Run Softwaretest") OPTIONS+=(SOFTWARE "Run Softwaretest")
OPTIONS+=(OFF "PowerOff RaspiBlitz") OPTIONS+=(UPDATE "Check/Prepare RaspiBlitz Update")
OPTIONS+=(OFF "PowerOff RaspiBlitz")
OPTIONS+=(X "Console / Terminal") OPTIONS+=(X "Console / Terminal")
fi fi
@ -576,6 +577,11 @@ case $CHOICE in
sudo shutdown -r now sudo shutdown -r now
exit 0 exit 0
;; ;;
UPDATE)
/home/admin/99checkUpdate.sh
./00mainMenu.sh
exit 0
;;
X) X)
lncli -h lncli -h
echo "OK you now on the command line." echo "OK you now on the command line."

4
home.admin/99checkBackup.sh → home.admin/99checkUpdate.sh

@ -129,5 +129,5 @@ OK. RaspiBlitz will NOT update now.
exit 1 exit 1
fi fi
echo "TODO: RUN UPDATE NOW" clear
exit 1 sudo shutdown now
Loading…
Cancel
Save