diff options
author | Lucian Cristian <lucian.cristian@gmail.com> | 2018-07-30 16:21:12 +0300 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-07-30 16:14:49 +0200 |
commit | accb67e582429e398605034d900f46b877a5aa63 (patch) | |
tree | 63ef46ed2dc46423518b9b0cc2eadc92b50c7030 /target/linux/ath79/base-files/etc | |
parent | ce93445cd6058ae37ca3d257792f68cd98e758da (diff) | |
download | upstream-accb67e582429e398605034d900f46b877a5aa63.tar.gz upstream-accb67e582429e398605034d900f46b877a5aa63.tar.bz2 upstream-accb67e582429e398605034d900f46b877a5aa63.zip |
ath79: add support for tl-wr841n-v9
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
Diffstat (limited to 'target/linux/ath79/base-files/etc')
-rwxr-xr-x | target/linux/ath79/base-files/etc/board.d/01_leds | 7 | ||||
-rwxr-xr-x | target/linux/ath79/base-files/etc/board.d/02_network | 6 |
2 files changed, 12 insertions, 1 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds index 4fa4434efe..e73a0a03c9 100755 --- a/target/linux/ath79/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/base-files/etc/board.d/01_leds @@ -66,6 +66,13 @@ case "$board" in ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10" ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02" ;; +"tplink,tl-wr841n-v9") + ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0" + ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10" + ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08" + ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04" + ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02" + ;; esac board_config_flush diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index b209bdad29..a4d91fcdf2 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -83,7 +83,11 @@ ath79_setup_interfaces() ucidef_add_switch "switch0" \ "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" ;; - + "tplink,tl-wr841n-v9") + ucidef_set_interface_wan "eth0" + ucidef_add_switch "switch0" \ + "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" + ;; "tplink,tl-wr1043nd-v1") ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "5@eth0" |