ar71xx: add support for dir 505 a1
[15.05/openwrt.git] / target / linux / ar71xx / base-files / lib / upgrade / platform.sh
index 01cf4b2..1b3273d 100755 (executable)
@@ -90,6 +90,7 @@ platform_check_image() {
        ap121-mini | \
        ap136-010 | \
        ap136-020 | \
+       ap135-020 | \
        ap96 | \
        db120 | \
        hornet-ub | \
@@ -103,9 +104,13 @@ platform_check_image() {
                ;;
        ap81 | \
        ap83 | \
+       ap132 | \
+       dir-505-a1 | \
        dir-600-a1 | \
        dir-615-c1 | \
        dir-615-e4 | \
+       dir-825-c1 | \
+       dir-835-a1 | \
        ew-dorin | \
        ew-dorin-router | \
        mzk-w04nu | \
@@ -118,6 +123,7 @@ platform_check_image() {
        nanostation-m | \
        rocket-m | \
        rw2458n | \
+       wndap360 | \
        wzr-hp-g300nh2 | \
        wzr-hp-g300nh | \
        wzr-hp-g450h | \
@@ -128,7 +134,8 @@ platform_check_image() {
        wlae-ag300n | \
        nbg460n_550n_550nh | \
        unifi | \
-       unifi-outdoor )
+       unifi-outdoor | \
+       carambola2 )
                [ "$magic" != "2705" ] && {
                        echo "Invalid image type."
                        return 1
@@ -142,23 +149,31 @@ platform_check_image() {
                ;;
 
        mr600 | \
+       mr600v2 | \
        om2p | \
        om2p-hs | \
        om2p-lc)
                platform_check_image_openmesh "$magic_long" "$1" && return 0
                return 1
                ;;
+
+       archer-c7 | \
+       tl-mr10u | \
        tl-mr11u | \
        tl-mr3020 | \
        tl-mr3040 | \
        tl-mr3220 | \
        tl-mr3220-v2 | \
        tl-mr3420 | \
+       tl-mr3420-v2 | \
        tl-wa7510n | \
        tl-wa901nd | \
        tl-wa901nd-v2 | \
+       tl-wdr3500 | \
        tl-wdr4300 | \
        tl-wr703n | \
+       tl-wr710n | \
+       tl-wr720n-v3 | \
        tl-wr741nd | \
        tl-wr741nd-v4 | \
        tl-wr841n-v1 | \
@@ -201,7 +216,8 @@ platform_check_image() {
                }
                return 0
                ;;
-       wndr3700)
+       wndr3700 | \
+       wnr612-v2)
                local hw_magic
 
                hw_magic="$(ar71xx_get_mtd_part_magic firmware)"
@@ -280,6 +296,7 @@ platform_do_upgrade() {
                platform_do_upgrade_dir825b "$ARGV"
                ;;
        mr600 | \
+       mr600v2 | \
        om2p | \
        om2p-hs | \
        om2p-lc)