mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-18 18:56:37 +00:00
ipq806x: 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 ipq806x devices using the linksys.sh script. Other devices and targets have not been examined. This commit uses the same functionality and terminology used in commit8634c10
("ipq40xx: Fix Linksys upgrade, restore config step") Fixes:e25e6d8
("base-files: fix and clean up nand sysupgrade code") Tested-on: EA8500 Signed-off-by: Jacob Aharon <ah.jacob@gmail.com>
This commit is contained in:
parent
18d516a649
commit
2715aff5df
@ -94,7 +94,12 @@ platform_do_upgrade_linksys() {
|
||||
|
||||
|
||||
# complete std upgrade
|
||||
nand_upgrade_tar "$1"
|
||||
if nand_upgrade_tar "$1" ; then
|
||||
nand_do_upgrade_success
|
||||
else
|
||||
nand_do_upgrade_failure
|
||||
fi
|
||||
|
||||
}
|
||||
[ "$magic_long" = "27051956" ] && {
|
||||
get_image "$1" | mtd write - $part_label
|
||||
|
Loading…
Reference in New Issue
Block a user