diff options
Diffstat (limited to 'target/linux/ramips/base-files')
5 files changed, 26 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index 61f662b496..61fbf0f3f3 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -336,6 +336,19 @@ tiny-ac) set_wifi_led "$board:orange:wifi" set_usb_led "$board:green:usb" ;; +tl-wr840n-v4) + set_wifi_led "$board:green:wlan" + ucidef_set_led_switch "lan" "lan" "$board:green:lan" "switch0" "0x1e" + ucidef_set_led_switch "wan" "wan" "$board:green:wan" "switch0" "0x01" + ;; +tl-wr841n-v13) + set_wifi_led "$board:green:wlan" + ucidef_set_led_switch "lan1" "lan1" "$board:green:lan1" "switch0" "0x2" + ucidef_set_led_switch "lan2" "lan2" "$board:green:lan2" "switch0" "0x4" + ucidef_set_led_switch "lan3" "lan3" "$board:green:lan3" "switch0" "0x8" + ucidef_set_led_switch "lan4" "lan4" "$board:green:lan4" "switch0" "0x10" + ucidef_set_led_switch "wan" "wan" "$board:green:wan" "switch0" "0x01" + ;; vocore-8M|\ vocore-16M) ucidef_set_led_netdev "eth" "ETH" "vocore:orange:eth" "eth0" diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index 214db9df38..22b231bf96 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -169,6 +169,8 @@ ramips_setup_interfaces() mzk-wdpr|\ rb750gr3|\ rt-n14u|\ + tl-wr840n-v4|\ + tl-wr841n-v13|\ ubnt-erx|\ ubnt-erx-sfp|\ ur-326n4g|\ diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 4c8f709efb..0f4e646ce1 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -35,6 +35,8 @@ get_status_led() { nbg-419n2|\ pwh2004|\ r6220|\ + tl-wr840n-v4|\ + tl-wr841n-v13|\ vr500|\ wnce2001|\ wndr3700v5|\ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index e146d1c476..3eb66dc646 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -487,6 +487,12 @@ ramips_board_detect() { *"Timecloud") name="timecloud" ;; + *"TL-WR840N v4") + name="tl-wr840n-v4" + ;; + *"TL-WR841N v13") + name="tl-wr841n-v13" + ;; *"UBNT-ERX") name="ubnt-erx" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 07530837d6..9b5da57146 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -230,7 +230,9 @@ platform_check_image() { ;; c20i|\ c50|\ - mr200) + mr200|\ + tl-wr840n-v4|\ + tl-wr841n-v13) [ "$magic" != "03000000" ] && { echo "Invalid image type." return 1 |