From c158e67610288afc248dcfd73933ef6a69ca30c8 Mon Sep 17 00:00:00 2001 From: Paul Philippov Date: Thu, 25 Aug 2022 12:09:54 -0400 Subject: [PATCH] add an option to not self-update the script. --- general/overlay/usr/sbin/sysupgrade | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/general/overlay/usr/sbin/sysupgrade b/general/overlay/usr/sbin/sysupgrade index 9cce8ad7..e3b70698 100755 --- a/general/overlay/usr/sbin/sysupgrade +++ b/general/overlay/usr/sbin/sysupgrade @@ -200,6 +200,7 @@ Where: --force_all do not validate anything -n, --wipe_overlay wipe overlay partition -x, --no_reboot do not reboot after updating + -z, --no_update do not update self -h, --help display this help and exit " } @@ -276,6 +277,10 @@ for i in "$@"; do skip_reboot=1 shift ;; + -z | --no_update) + skip_selfupdate=1 + shift + ;; *) print_sysinfo echo_c 37 "\nUnknown option: $1" @@ -293,7 +298,7 @@ print_sysinfo echo_c 37 "\nTry '$(basename "$0") --help' for options." && exit 0 -self_update +[ "1" != "$skip_selfupdate" ] && self_update check_sdcard