ramips: add preliminary Archer C20i support
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / upgrade / platform.sh
index 19793c20fbdad33f7bcead9fce670002e21cf72c..95cad633a56a4e9f1c40e14fba14c84835eac96d 100755 (executable)
@@ -19,6 +19,7 @@ platform_check_image() {
        3g300m | \
        a5-v11 | \
        air3gii | \
+       ai-br100 |\
        all0239-3g | \
        all0256n | \
        all5002 | \
@@ -87,6 +88,9 @@ platform_check_image() {
        w306r-v20 |\
        w502u |\
        whr-g300n |\
+       whr-600d |\
+       whr-1166d |\
+       wsr-600 |\
        wl-330n | \
        wl-330n3g | \
        wl-351 | \
@@ -111,6 +115,13 @@ platform_check_image() {
                }
                return 0
                ;;
+       wsr-1166)
+               [ "$magic" != "48445230" ] && {
+                       echo "Invalid image type."
+                       return 1
+               }
+               return 0
+               ;;
        ar670w)
                [ "$magic" != "6d000080" ] && {
                        echo "Invalid image type."
@@ -134,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."