diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-06-19 11:51:18 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-06-19 11:51:18 +0000 |
commit | c9e25879a594b47074d3cec03f7b3b70b0eff2b6 (patch) | |
tree | 72f308e02375468e4d8c4edbfe3c68c16c10a6c5 /target/linux/ar71xx/base-files | |
parent | b02b34668c0c76656ad9e2b6d4b006c7b82f321d (diff) | |
download | master-187ad058-c9e25879a594b47074d3cec03f7b3b70b0eff2b6.tar.gz master-187ad058-c9e25879a594b47074d3cec03f7b3b70b0eff2b6.tar.bz2 master-187ad058-c9e25879a594b47074d3cec03f7b3b70b0eff2b6.zip |
ar71xx: add user space support for the TL-WDR4300
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32460 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files')
5 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 6cee29f3e8..5c84f82ca3 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -121,6 +121,7 @@ get_status_led() { tl-wr941nd) status_led="tp-link:green:system" ;; + tl-wdr4300 | \ tl-wr703n) status_led="tp-link:blue:system" ;; diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/leds b/target/linux/ar71xx/base-files/etc/uci-defaults/leds index 0a111cb565..0415221872 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/leds @@ -84,6 +84,12 @@ tl-wa901nd) ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0" ;; +tl-wdr4300) + ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1.1" + ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "1-1.2" + ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt" + ;; + tl-wr741nd) ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1" ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02" diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/network b/target/linux/ar71xx/base-files/etc/uci-defaults/network index 993e024782..521cffdbfd 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/network @@ -89,6 +89,7 @@ ap113) ucidef_add_switch_vlan "eth0" "2" "0t 2" ;; +tl-wdr4300|\ tl-wr1041n-v2) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" ucidef_add_switch "eth0" "1" "1" diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index d3eca41508..430242ed40 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -123,6 +123,9 @@ tplink_board_detect() { "342000"*) model="TP-Link TL-MR3420" ;; + "430000"*) + model="TP-Link TL-WDR4300" + ;; *) hwver="" ;; @@ -309,6 +312,9 @@ ar71xx_board_detect() { *"TL-WA901ND v2") name="tl-wa901nd-v2" ;; + *TL-WDR4300) + name="tl-wdr4300" + ;; *TL-WR741ND) name="tl-wr741nd" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 10ba6f8542..054d591713 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -131,6 +131,7 @@ platform_check_image() { tl-mr3420 | \ tl-wa901nd | \ tl-wa901nd-v2 | \ + tl-wdr4300 | \ tl-wr703n | \ tl-wr741nd | \ tl-wr741nd-v4 | \ |