From b33752051f9ee0bb4d0f8a78e7cafd9bbc8fa1b7 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=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafał Miłecki SVN-Revision: 45667 --- .../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) -- 2.30.2