ar71xx: Add support for Cisco-Linksys WAP4410N
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / upgrade / platform.sh
index a8cec916a26d52a2a38ae1b05aea95565f580064..73d8b0d7f64b6c88b5c657e25414d2d7aa0c4c57 100755 (executable)
@@ -184,7 +184,8 @@ platform_check_image() {
        db120 | \
        f9k1115v2 |\
        hornet-ub | \
-       wpj344 | \
+       mr12 | \
+       mr16 | \
        wpj558 | \
        zcn-1523h-2 | \
        zcn-1523h-5)
@@ -204,9 +205,11 @@ platform_check_image() {
        dir-615-c1 | \
        dir-615-e1 | \
        dir-615-e4 | \
+       dir-615-i1 | \
        dir-825-c1 | \
        dir-835-a1 | \
        dragino2 | \
+       epg5000 | \
        esr1750 | \
        esr900 | \
        ew-dorin | \
@@ -226,9 +229,13 @@ platform_check_image() {
        nanostation-m | \
        rocket-m | \
        rocket-m-xw | \
+       rocket-m-ti | \
        nanostation-m-xw | \
        rw2458n | \
+       wpj531 | \
+       wap4410n | \
        wndap360 | \
+       wpj344 | \
        wzr-hp-g300nh2 | \
        wzr-hp-g300nh | \
        wzr-hp-g450h | \
@@ -296,6 +303,8 @@ platform_check_image() {
                return 1
                ;;
 
+       antminer-s1 | \
+       antminer-s3 | \
        archer-c5 | \
        archer-c7 | \
        el-m150 | \
@@ -448,6 +457,19 @@ platform_check_image() {
        return 1
 }
 
+platform_pre_upgrade() {
+       local board=$(ar71xx_board_name)
+
+       case "$board" in
+       nbg6716 | \
+       r6100 | \
+       wndr3700v4 | \
+       wndr4300 )
+               nand_do_upgrade "$1"
+               ;;
+       esac
+}
+
 platform_do_upgrade() {
        local board=$(ar71xx_board_name)