On nand subtarget, the default upgrade mechanism should be
nand_do_upgrade. This patch changes platform_do_upgrade()
accordingly.

Signed-off-by: Adrian Schmutzler <[email protected]>
---
 target/linux/ath79/nand/base-files/lib/upgrade/platform.sh | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/target/linux/ath79/nand/base-files/lib/upgrade/platform.sh 
b/target/linux/ath79/nand/base-files/lib/upgrade/platform.sh
index 6f8c7d47ff..3956d5d73f 100644
--- a/target/linux/ath79/nand/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ath79/nand/base-files/lib/upgrade/platform.sh
@@ -13,12 +13,11 @@ platform_do_upgrade() {
        local board=$(board_name)
 
        case "$board" in
-       aerohive,hiveap-121|\
-       zyxel,nbg6716)
-               nand_do_upgrade "$1"
+       glinet,gl-ar300m-nand)
+               default_do_upgrade "$1"
                ;;
        *)
-               default_do_upgrade "$1"
+               nand_do_upgrade "$1"
                ;;
        esac
 }
-- 
2.20.1


_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to