ar71xx: Add userspace support for AP135
[openwrt.git] / target / linux / ar71xx / base-files / lib / upgrade / platform.sh
index 81535ce..3d5efdb 100755 (executable)
@@ -88,7 +88,9 @@ platform_check_image() {
        ap113 | \
        ap121 | \
        ap121-mini | \
-       ap136 | \
+       ap136-010 | \
+       ap136-020 | \
+       ap135-020 | \
        ap96 | \
        db120 | \
        hornet-ub | \
@@ -126,7 +128,8 @@ platform_check_image() {
        whr-hp-gn | \
        wlae-ag300n | \
        nbg460n_550n_550nh | \
-       unifi )
+       unifi | \
+       unifi-outdoor )
                [ "$magic" != "2705" ] && {
                        echo "Invalid image type."
                        return 1
@@ -139,17 +142,20 @@ platform_check_image() {
                dir825b_check_image "$1" && return 0
                ;;
 
+       mr600 | \
        om2p | \
        om2p-hs | \
        om2p-lc)
-               platform_check_image_om2p "$magic_long" "$1" && return 0
+               platform_check_image_openmesh "$magic_long" "$1" && return 0
                return 1
                ;;
        tl-mr11u | \
        tl-mr3020 | \
        tl-mr3040 | \
        tl-mr3220 | \
+       tl-mr3220-v2 | \
        tl-mr3420 | \
+       tl-wa7510n | \
        tl-wa901nd | \
        tl-wa901nd-v2 | \
        tl-wdr4300 | \
@@ -189,6 +195,13 @@ platform_check_image() {
 
                return 0
                ;;
+       uap-pro)
+               [ "$magic_long" != "19852003" ] && {
+                       echo "Invalid image type."
+                       return 1
+               }
+               return 0
+               ;;
        wndr3700)
                local hw_magic
 
@@ -267,10 +280,11 @@ platform_do_upgrade() {
        tew-673gru)
                platform_do_upgrade_dir825b "$ARGV"
                ;;
+       mr600 | \
        om2p | \
        om2p-hs | \
        om2p-lc)
-               platform_do_upgrade_om2p "$ARGV"
+               platform_do_upgrade_openmesh "$ARGV"
                ;;
        *)
                default_do_upgrade "$ARGV"