ar71xx: add platform_pre_upgrade for sysupgrade
authorFelix Fietkau <nbd@openwrt.org>
Sun, 10 May 2015 13:54:25 +0000 (13:54 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 10 May 2015 13:54:25 +0000 (13:54 +0000)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45667

target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index b3c61ef539c085d9e85289b4e78d524b70453b91..7ab3f5f2a10f0b67c40536322e1e4acde4114ff3 100755 (executable)
@@ -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)