aboutsummaryrefslogtreecommitdiff
path: root/target/linux/ath79/generic/base-files/lib/upgrade/platform.sh
diff options
context:
space:
mode:
authorMichael Pratt <mcpratt@pm.me>2022-12-09 17:47:11 -0500
committerHauke Mehrtens <hauke@hauke-m.de>2023-01-06 15:34:07 +0100
commit766de7013fcef2a9d759e056bb40c1cb58cfd65f (patch)
tree8b9b02ecb76304fbb80a702de864054d70840e50 /target/linux/ath79/generic/base-files/lib/upgrade/platform.sh
parent8342c092a03caedbf160d4ac3982c6a9be91261f (diff)
ath79: allow skipping hash for Senao sysupgrade
Some vendors of Senao boards have a similar flash layout situation that causes the need to split the firmware partition and use the lzma-loader, but do not store checksums of the partitions or otherwise do not even have a uboot environment partition. This adds simple shell logic to skip that part. Also, simplify some lines and variable usage. Signed-off-by: Michael Pratt <mcpratt@pm.me>
Diffstat (limited to 'target/linux/ath79/generic/base-files/lib/upgrade/platform.sh')
-rw-r--r--target/linux/ath79/generic/base-files/lib/upgrade/platform.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ath79/generic/base-files/lib/upgrade/platform.sh b/target/linux/ath79/generic/base-files/lib/upgrade/platform.sh
index c58e005344..0de3dbf3b5 100644
--- a/target/linux/ath79/generic/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ath79/generic/base-files/lib/upgrade/platform.sh
@@ -45,6 +45,7 @@ platform_do_upgrade() {
watchguard,ap100|\
watchguard,ap200|\
watchguard,ap300)
+ ENV_SCRIPT="/tmp/fw_env"
IMAGE_LIST="tar tzf $1"
IMAGE_CMD="tar xzOf $1"
KERNEL_PART="loader"