From: Felix Fietkau Date: Sun, 10 May 2015 13:54:25 +0000 (+0000) Subject: ar71xx: add platform_pre_upgrade for sysupgrade X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b33752051f9ee0bb4d0f8a78e7cafd9bbc8fa1b7;p=openwrt%2Fstaging%2Fstintel.git ar71xx: add platform_pre_upgrade for sysupgrade Signed-off-by: Rafał Miłecki SVN-Revision: 45667 --- 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)