ramips: add preliminary Archer C20i support
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / upgrade / platform.sh
index 61a0935d7ece49f6f44ec119ba835bafa1fd556f..95cad633a56a4e9f1c40e14fba14c84835eac96d 100755 (executable)
@@ -17,7 +17,9 @@ platform_check_image() {
        3g-6200n | \
        3g-6200nl | \
        3g300m | \
+       a5-v11 | \
        air3gii | \
+       ai-br100 |\
        all0239-3g | \
        all0256n | \
        all5002 | \
@@ -43,6 +45,7 @@ platform_check_image() {
        dir-620-a1 | \
        dir-620-d1 | \
        dir-810l | \
+       e1700 | \
        esr-9753 | \
        f7c027 | \
        fonera20n | \
@@ -85,6 +88,9 @@ platform_check_image() {
        w306r-v20 |\
        w502u |\
        whr-g300n |\
+       whr-600d |\
+       whr-1166d |\
+       wsr-600 |\
        wl-330n | \
        wl-330n3g | \
        wl-351 | \
@@ -97,6 +103,7 @@ platform_check_image() {
        wr8305rt |\
        wrtnode |\
        wt1520 |\
+       wt3020 |\
        x5 |\
        x8 |\
        y1 |\
@@ -108,6 +115,20 @@ platform_check_image() {
                }
                return 0
                ;;
+       wsr-1166)
+               [ "$magic" != "48445230" ] && {
+                       echo "Invalid image type."
+                       return 1
+               }
+               return 0
+               ;;
+       ar670w)
+               [ "$magic" != "6d000080" ] && {
+                       echo "Invalid image type."
+                       return 1
+               }
+               return 0
+               ;;
        cy-swr1100 |\
        dir-610-a1 |\
        dir-645)
@@ -124,6 +145,13 @@ platform_check_image() {
                }
                return 0
                ;;
+       c20i)
+               [ "$magic" != "03000000" ] && {
+                       echo "Invalid image type."
+                       return 1
+               }
+               return 0
+               ;;
        esac
 
        echo "Sysupgrade is not yet supported on $board."