diff options
author | Michael Trinidad <trinidude4@hotmail.com> | 2023-04-07 09:02:37 -0400 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-04-11 12:22:09 +0200 |
commit | d1c1e10e89f144a850fd09743e268b499e9f2b2a (patch) | |
tree | 9302f105e8d4e1a68fe0b203d91eff6eb77ab8b4 /target | |
parent | 65f8089b7ada050c876064957db949c931b76358 (diff) | |
download | upstream-d1c1e10e89f144a850fd09743e268b499e9f2b2a.tar.gz upstream-d1c1e10e89f144a850fd09743e268b499e9f2b2a.tar.bz2 upstream-d1c1e10e89f144a850fd09743e268b499e9f2b2a.zip |
mvebu: cortexa9: fix Linksys upgrade, restore config step
It appears that the refactor of the upgrade process for NAND devices resulted in the nand_do_upgrade_success step not being called for
devices using the linksys.sh script. As a result, configuration was
not preserved over sysupgrade steps.
This restores the preservation of configs for mvebu/cortexa9 devices using the
linksys.sh script.
Fixes: e25e6d8e5407 ("base-files: fix and clean up nand sysupgrade code")
Signed-off-by: Michael Trinidad <trinidude4@hotmail.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/mvebu/cortexa9/base-files/lib/upgrade/linksys.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/target/linux/mvebu/cortexa9/base-files/lib/upgrade/linksys.sh b/target/linux/mvebu/cortexa9/base-files/lib/upgrade/linksys.sh index 1a23a9bbc2..d4222a3f31 100644 --- a/target/linux/mvebu/cortexa9/base-files/lib/upgrade/linksys.sh +++ b/target/linux/mvebu/cortexa9/base-files/lib/upgrade/linksys.sh @@ -68,7 +68,12 @@ platform_do_upgrade_linksys() { CI_UBIPART="rootfs2" fi - nand_upgrade_tar "$1" + if nand_upgrade_tar "$1" ; then + nand_do_upgrade_success + else + nand_do_upgrade_failed + fi + } [ "$magic_long" = "27051956" -o "$magic_long" = "0000a0e1" ] && { get_image "$1" | mtd write - $part_label |