From beecdd63b322328994c80d83bdbc18eaefe426e6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 10 May 2015 13:54:25 +0000 Subject: [PATCH] ar71xx: add platform_pre_upgrade for sysupgrade MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafał Miłecki git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45667 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../linux/ar71xx/base-files/lib/upgrade/platform.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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)