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 b3c61ef..7ab3f5f 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)