From 0bca69f7bf0eb881b22316768b95a0f12990e80b Mon Sep 17 00:00:00 2001 From: juhosg Date: Wed, 25 Jan 2012 07:44:45 +0000 Subject: ar71xx: TL-MR3020: fix board detection, fix missing mandatory package and modify LED behaviour This patch fixes the board detection of the TL-MR3020. The LED behaviour has also been modified: * The WPS LED is the diag LED now. * A netdev trigger for the LAN LED has been added. The profile of the TL-MR3020 has been updated because the needed package "kmod-ledtrig-usbdev" was missing which resulted in a non-working usbdev trigger for the 3G/USB LED. [juhosg: the board name changes has been removed, and the kernel files has been changed instead.] Signed-off-by: Christian Cier-Zniewski git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29905 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/base-files/etc/diag.sh | 4 +++- target/linux/ar71xx/base-files/etc/uci-defaults/leds | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'target/linux/ar71xx/base-files') diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 76f263b64..f30ad0522 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -97,7 +97,9 @@ get_status_led() { tew-632brp) status_led="tew-632brp:green:status" ;; - tl-mr3020 | \ + tl-mr3020) + status_led="tp-link:green:wps" + ;; tl-mr3220 | \ tl-mr3420 | \ tl-wa901nd | \ diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/leds b/target/linux/ar71xx/base-files/etc/uci-defaults/leds index 45be6bd0f..f65af4a41 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/leds @@ -146,6 +146,7 @@ om2p) tl-mr3020) set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1" set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" + set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0" ;; tl-mr3220 | \ -- cgit v1.2.3