From e3091085e564f462bd6ad28d5b156513b96cf734 Mon Sep 17 00:00:00 2001 From: Alfonso Gamboa Date: Sat, 4 Jun 2022 04:43:23 -0700 Subject: [PATCH] enhance upgrade script to install the latest version of itself upon extraction --- SD_ROOT/wz_mini/usr/bin/upgrade-run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SD_ROOT/wz_mini/usr/bin/upgrade-run.sh b/SD_ROOT/wz_mini/usr/bin/upgrade-run.sh index 2f4080f..713acd9 100755 --- a/SD_ROOT/wz_mini/usr/bin/upgrade-run.sh +++ b/SD_ROOT/wz_mini/usr/bin/upgrade-run.sh @@ -44,6 +44,9 @@ cp -r /opt/wz_mini/etc/ssh /opt/Upgrade/preserve/ cp -r /opt/wz_mini/etc/wireguard /opt/Upgrade/preserve/ sync +echo "Installing latest upgrade-script" +cp /opt/Upgrade/wz_mini_hacks-master/SD_ROOT/wz_mini/usr/bin/upgrade-run.sh /opt/wz_mini/usr/bin/upgrade-run.sh + echo "Rebooting into UPGRADE MODE" reboot }