ralink: add support for firewrt
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / upgrade / platform.sh
index 10892f615dbeb0246056cf8c705546099ee0d0d9..ff7126a96fcabd580f7c58391bffa0b0b19b0d05 100755 (executable)
@@ -50,14 +50,17 @@ platform_check_image() {
        f7c027 | \
        fonera20n | \
        freestation5 | \
+       firewrt |\
        hg255d | \
        hlk-rm04 | \
        ht-tm02 | \
        hw550-3g | \
        ip2202 | \
+       m2m | \
        m3 | \
        m4 | \
        mlw221 | \
+       mlwg2 | \
        mofi3500-3gn | \
        mpr-a1 | \
        mpr-a2 | \
@@ -131,7 +134,8 @@ platform_check_image() {
                ;;
        cy-swr1100 |\
        dir-610-a1 |\
-       dir-645)
+       dir-645 |\
+       dir-860l-b1)
                [ "$magic" != "5ea3a417" ] && {
                        echo "Invalid image type."
                        return 1
@@ -145,6 +149,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."