diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-05-10 13:54:25 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-05-10 13:54:25 +0000 |
commit | beecdd63b322328994c80d83bdbc18eaefe426e6 (patch) | |
tree | 2b02919437f1a6ebefd93eff2c142cd18e1e791d | |
parent | 9612e0890da2006353d6c071dbb54fe3f36d92cf (diff) | |
download | upstream-beecdd63b322328994c80d83bdbc18eaefe426e6.tar.gz upstream-beecdd63b322328994c80d83bdbc18eaefe426e6.tar.bz2 upstream-beecdd63b322328994c80d83bdbc18eaefe426e6.zip |
ar71xx: add platform_pre_upgrade for sysupgrade
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45667 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index b3c61ef539..7ab3f5f2a1 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -448,6 +448,19 @@ platform_check_image() { return 1 } +platform_pre_upgrade() { + local board=$(ar71xx_board_name) + + case "$board" in + nbg6716 | \ + r6100 | \ + wndr3700v4 | \ + wndr4300 ) + nand_do_upgrade "$1" + ;; + esac +} + platform_do_upgrade() { local board=$(ar71xx_board_name) |