ath79: use nand_do_upgrade by default for nand subtarget
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 27 Oct 2019 23:15:29 +0000 (00:15 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 2 Nov 2019 23:29:12 +0000 (00:29 +0100)
On nand subtarget, the default upgrade mechanism should be
nand_do_upgrade. This patch changes platform_do_upgrade()
accordingly.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/nand/base-files/lib/upgrade/platform.sh

index 1b1ae0391e7d7f8de5061c912947ae2b914fe2c4..3956d5d73f6c7e2f5bd409a6f60bf8a70346b61f 100644 (file)
@@ -13,13 +13,11 @@ platform_do_upgrade() {
        local board=$(board_name)
 
        case "$board" in
-       aerohive,hiveap-121|\
-       netgear,wndr4300|\
-       zyxel,nbg6716)
-               nand_do_upgrade "$1"
+       glinet,gl-ar300m-nand)
+               default_do_upgrade "$1"
                ;;
        *)
-               default_do_upgrade "$1"
+               nand_do_upgrade "$1"
                ;;
        esac
 }