target: ar71xx: add support for COMFAST CF-E316N v2 board
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / upgrade / platform.sh
index ade47fb8522591b56bb47a3a70a472e2dbf1911c..673ee4ecd0bbd28ffa0add9ac36ce95f41572af8 100755 (executable)
@@ -179,6 +179,7 @@ platform_check_image() {
        ap136-010 | \
        ap136-020 | \
        ap135-020 | \
+       ap147-010 | \
        ap96 | \
        bxu2000n-2-a1 | \
        db120 | \
@@ -198,6 +199,7 @@ platform_check_image() {
        ap81 | \
        ap83 | \
        ap132 | \
+       cf-e316n-v2 | \
        dgl-5500-a1 |\
        dhp-1565-a1 |\
        dir-505-a1 | \
@@ -205,9 +207,13 @@ platform_check_image() {
        dir-615-c1 | \
        dir-615-e1 | \
        dir-615-e4 | \
+       dir-615-i1 | \
        dir-825-c1 | \
        dir-835-a1 | \
+       dlan-pro-500-wp | \
+       dlan-pro-1200-ac | \
        dragino2 | \
+       epg5000 | \
        esr1750 | \
        esr900 | \
        ew-dorin | \
@@ -227,6 +233,7 @@ platform_check_image() {
        nanostation-m | \
        rocket-m | \
        rocket-m-xw | \
+       rocket-m-ti | \
        nanostation-m-xw | \
        rw2458n | \
        wpj531 | \
@@ -257,6 +264,7 @@ platform_check_image() {
                return 1
                ;;
 
+       bsb | \
        dir-825-b1 | \
        tew-673gru)
                dir825b_check_image "$1" && return 0
@@ -299,12 +307,15 @@ platform_check_image() {
                return 1
                ;;
 
+       antminer-s1 | \
+       antminer-s3 | \
        archer-c5 | \
        archer-c7 | \
        el-m150 | \
        el-mini | \
        gl-inet | \
        mc-mac1200r | \
+       onion-omega | \
        oolite | \
        smart-300 | \
        tl-mr10u | \
@@ -331,6 +342,7 @@ platform_check_image() {
        tl-wdr3500 | \
        tl-wdr4300 | \
        tl-wdr4900-v2 | \
+       tl-wdr6500-v2 | \
        tl-wr703n | \
        tl-wr710n | \
        tl-wr720n-v3 | \
@@ -348,7 +360,15 @@ platform_check_image() {
        tl-wr1043nd | \
        tl-wr1043nd-v2 | \
        tl-wr2543n)
-               [ "$magic" != "0100" ] && {
+               local magic_ver="0100"
+
+               case "$board" in
+               tl-wdr6500-v2)
+                       magic_ver="0200"
+                       ;;
+               esac
+
+               [ "$magic" != "$magic_ver" ] && {
                        echo "Invalid image type."
                        return 1
                }