ramips: add support for Afoundry EW-1200
[openwrt/staging/yousong.git] / target / linux / ramips / base-files / lib / upgrade / platform.sh
index d83e5c1dd28bc885f81ea912afa15a2314a85e3e..3245e2c1c806e24c9404dec1ea7a421fcfce4721 100755 (executable)
@@ -35,6 +35,7 @@ platform_check_image() {
        cf-wr800n|\
        cs-qr10|\
        d105|\
+       d240|\
        dap-1350|\
        db-wrt01|\
        dcs-930|\
@@ -52,6 +53,7 @@ platform_check_image() {
        dwr-512-b|\
        e1700|\
        esr-9753|\
+       ew1200|\
        ex2700|\
        f7c027|\
        firewrt|\
@@ -61,6 +63,7 @@ platform_check_image() {
        gl-mt300n|\
        gl-mt750|\
        hc5*61|\
+       hc5661a|\
        hg255d|\
        hlk-rm04|\
        hpm|\
@@ -226,6 +229,10 @@ platform_check_image() {
                }
                return 0
                ;;
+       hc5962)
+               # these boards use metadata images
+               return 0
+               ;;
        ubnt-erx)
                nand_do_platform_check "$board" "$1"
                return $?;
@@ -258,6 +265,7 @@ platform_pre_upgrade() {
        local board=$(ramips_board_name)
 
        case "$board" in
+       hc5962|\
        ubnt-erx)
                nand_do_upgrade "$ARGV"
                ;;