From 61cdc025012f2703e6a5d6fc83b52c0a96a14ea4 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Tue, 16 Apr 2019 18:31:36 +0100 Subject: [PATCH] #524 added Update to main menu --- home.admin/00mainMenu.sh | 12 +++++++++--- home.admin/{99checkBackup.sh => 99checkUpdate.sh} | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) rename home.admin/{99checkBackup.sh => 99checkUpdate.sh} (99%) diff --git a/home.admin/00mainMenu.sh b/home.admin/00mainMenu.sh index 21cb827..24cb971 100755 --- a/home.admin/00mainMenu.sh +++ b/home.admin/00mainMenu.sh @@ -377,9 +377,10 @@ else fi # final Options - OPTIONS+=(HARDWARE "Run Hardwaretest") - OPTIONS+=(SOFTWARE "Run Softwaretest") - OPTIONS+=(OFF "PowerOff RaspiBlitz") + OPTIONS+=(HARDWARE "Run Hardwaretest") + OPTIONS+=(SOFTWARE "Run Softwaretest") + OPTIONS+=(UPDATE "Check/Prepare RaspiBlitz Update") + OPTIONS+=(OFF "PowerOff RaspiBlitz") OPTIONS+=(X "Console / Terminal") fi @@ -576,6 +577,11 @@ case $CHOICE in sudo shutdown -r now exit 0 ;; + UPDATE) + /home/admin/99checkUpdate.sh + ./00mainMenu.sh + exit 0 + ;; X) lncli -h echo "OK you now on the command line." diff --git a/home.admin/99checkBackup.sh b/home.admin/99checkUpdate.sh similarity index 99% rename from home.admin/99checkBackup.sh rename to home.admin/99checkUpdate.sh index efd9b5e..92af3f4 100644 --- a/home.admin/99checkBackup.sh +++ b/home.admin/99checkUpdate.sh @@ -129,5 +129,5 @@ OK. RaspiBlitz will NOT update now. exit 1 fi -echo "TODO: RUN UPDATE NOW" -exit 1 \ No newline at end of file +clear +sudo shutdown now \ No newline at end of file