ramips: add support for TRENDnet TEW-638APB V2
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / upgrade / platform.sh
index 036e19afe35f681e96ea7ed59a398805edf92f69..07530837d6e6cf20b4948638829d804d22c677f5 100755 (executable)
@@ -17,7 +17,6 @@ platform_check_image() {
        3g150b|\
        3g300m|\
        a5-v11|\
-       ac1200pro|\
        ai-br100|\
        air3gii|\
        all0239-3g|\
@@ -66,6 +65,7 @@ platform_check_image() {
        gl-mt300a|\
        gl-mt300n|\
        gl-mt750|\
+       gl-mt300n-v2|\
        hc5*61|\
        hc5661a|\
        hg255d|\
@@ -77,6 +77,7 @@ platform_check_image() {
        jhr-n805r|\
        jhr-n825r|\
        jhr-n926r|\
+       kn|\
        kn_rc|\
        kn_rf|\
        kng_rc|\
@@ -127,6 +128,7 @@ platform_check_image() {
        rp-n53|\
        rt5350f-olinuxino|\
        rt5350f-olinuxino-evb|\
+       rt-ac51u|\
        rt-g32-b1|\
        rt-n10-plus|\
        rt-n13u|\
@@ -137,6 +139,7 @@ platform_check_image() {
        sap-g3200u3|\
        sk-wb8|\
        sl-r7205|\
+       tew-638apb-v2|\
        tew-691gr|\
        tew-692gr|\
        tew-714tru|\
@@ -192,10 +195,13 @@ platform_check_image() {
        zbt-ape522ii|\
        zbt-cpe102|\
        zbt-wa05|\
+       zbt-we1326|\
        zbt-we2026|\
-       zbt-we826|\
+       zbt-we826-16M|\
+       zbt-we826-32M|\
        zbt-wg2626|\
-       zbt-wg3526|\
+       zbt-wg3526-16M|\
+       zbt-wg3526-32M|\
        zbt-wr8305rt|\
        zte-q7|\
        youku-yk1)
@@ -247,7 +253,8 @@ platform_check_image() {
                # these boards use metadata images
                return 0
                ;;
-       ubnt-erx)
+       ubnt-erx|\
+       ubnt-erx-sfp)
                nand_do_platform_check "$board" "$1"
                return $?;
                ;;
@@ -269,28 +276,23 @@ platform_nand_pre_upgrade() {
        local board=$(ramips_board_name)
 
        case "$board" in
-       ubnt-erx)
+       ubnt-erx|\
+       ubnt-erx-sfp)
                platform_upgrade_ubnt_erx "$ARGV"
                ;;
        esac
 }
 
-platform_pre_upgrade() {
+platform_do_upgrade() {
        local board=$(ramips_board_name)
 
        case "$board" in
        hc5962|\
        r6220|\
-       ubnt-erx)
+       ubnt-erx|\
+       ubnt-erx-sfp)
                nand_do_upgrade "$ARGV"
                ;;
-       esac
-}
-
-platform_do_upgrade() {
-       local board=$(ramips_board_name)
-
-       case "$board" in
        *)
                default_do_upgrade "$ARGV"
                ;;