ar71xx: add sysupgrade support for wndr4300
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / upgrade / platform.sh
index 9315ac0134d69ce89fce48a1b58c883a1e20e7a2..4e698c6f687f2a62cfc6adb7a8cca1b512d35f54 100755 (executable)
@@ -153,6 +153,7 @@ platform_check_image() {
        dragino2 | \
        ew-dorin | \
        ew-dorin-router | \
+       hiwifi-hc6361 | \
        hornet-ub-x2 | \
        mzk-w04nu | \
        mzk-w300nh | \
@@ -293,6 +294,7 @@ platform_check_image() {
                return 0
                ;;
        wndr3700 | \
+       wnr2000-v3 | \
        wnr612-v2)
                local hw_magic
 
@@ -303,6 +305,14 @@ platform_check_image() {
                }
                return 0
                ;;
+       wndr4300 )
+               nand_do_upgrade_stage1 $board $1
+               [ $? != 0 ] && {
+                       echo "Invalid tar file."
+                       return 1
+               }
+               return 0;
+               ;;
        routerstation | \
        routerstation-pro | \
        ls-sr71 | \