ath79: allow skipping hash for Senao sysupgrade
authorMichael Pratt <mcpratt@pm.me>
Fri, 9 Dec 2022 22:47:11 +0000 (17:47 -0500)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 6 Jan 2023 14:34:07 +0000 (15:34 +0100)
commit766de7013fcef2a9d759e056bb40c1cb58cfd65f
tree8b9b02ecb76304fbb80a702de864054d70840e50
parent8342c092a03caedbf160d4ac3982c6a9be91261f
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>
target/linux/ath79/generic/base-files/lib/upgrade/failsafe_datachk.sh
target/linux/ath79/generic/base-files/lib/upgrade/platform.sh
target/linux/ath79/tiny/base-files/lib/upgrade/failsafe_datachk.sh
target/linux/ath79/tiny/base-files/lib/upgrade/platform.sh