ramips: add preliminary Archer C20i support
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / upgrade / platform.sh
index 10892f615dbeb0246056cf8c705546099ee0d0d9..95cad633a56a4e9f1c40e14fba14c84835eac96d 100755 (executable)
@@ -145,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."