ramips: add support for TRENDnet TEW-638APB V2
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / upgrade / platform.sh
index 6aad4c96019b9b8eceea5364890ca23dcaa13bb7..07530837d6e6cf20b4948638829d804d22c677f5 100755 (executable)
@@ -139,6 +139,7 @@ platform_check_image() {
        sap-g3200u3|\
        sk-wb8|\
        sl-r7205|\
+       tew-638apb-v2|\
        tew-691gr|\
        tew-692gr|\
        tew-714tru|\
@@ -252,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 $?;
                ;;
@@ -274,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"
                ;;