summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-11-01 11:20:44 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-11-01 11:20:44 +0000
commit46393cef669cf1450dbe4f738068e9caded1565c (patch)
tree2b95c4b41555d0fb22e16b60449f239857aabfa2 /target/linux/ar71xx/base-files/etc
parent11cfb889eb69a284196d82cc9bbf1467560e9cde (diff)
ar71xx: unify LED names on TP-Link boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28701 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh31
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/tl-mr3x202
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/tl-wr1043nd4
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/tl-wr941nd2
4 files changed, 14 insertions, 25 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index ad4fc28b7..daa740733 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -87,29 +87,18 @@ get_status_led() {
tew-632brp)
status_led="tew-632brp:green:status"
;;
- tl-mr3220 | tl-mr3420)
- status_led="tl-mr3x20:green:system"
- ;;
- tl-wa901nd)
- status_led="tl-wa901nd:green:system"
- ;;
- tl-wa901nd-v2)
- status_led="tl-wa901nd-v2:green:system"
- ;;
- tl-wr1043nd)
- status_led="tl-wr1043nd:green:system"
+ tl-mr3220 | \
+ tl-mr3420 | \
+ tl-wa901nd | \
+ tl-wa901nd-v2 | \
+ tl-wr1043nd | \
+ tl-wr741nd | \
+ tl-wr841n-v1 | \
+ tl-wr941nd)
+ status_led="tp-link:green:system"
;;
tl-wr703n)
- status_led="tl-wr703n:blue:system"
- ;;
- tl-wr741nd)
- status_led="tl-wr741nd:green:system"
- ;;
- tl-wr841n-v1)
- status_led="tl-wr841n:green:system"
- ;;
- tl-wr941nd)
- status_led="tl-wr941nd:green:system"
+ status_led="tp-link:blue:system"
;;
unifi)
status_led="ubnt:green:dome"
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/tl-mr3x20 b/target/linux/ar71xx/base-files/etc/uci-defaults/tl-mr3x20
index c9e5e3881..bdb7c3e78 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/tl-mr3x20
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/tl-mr3x20
@@ -11,7 +11,7 @@ tlmr3x20_setup_leds() {
uci batch <<EOF
set system.usb_led=led
set system.usb_led.name='USB'
-set system.usb_led.sysfs='tl-mr3x20:green:3g'
+set system.usb_led.sysfs='tp-link:green:3g'
set system.usb_led.trigger='usbdev'
set system.usb_led.dev='1-1'
set system.usb_led.interval='50'
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/tl-wr1043nd b/target/linux/ar71xx/base-files/etc/uci-defaults/tl-wr1043nd
index 366276334..e88cc54d6 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/tl-wr1043nd
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/tl-wr1043nd
@@ -11,11 +11,11 @@ tlwr1043nd_setup_leds() {
uci batch <<EOF
set system.wlan_led=led
set system.wlan_led.name='WLAN'
-set system.wlan_led.sysfs='tl-wr1043nd:green:wlan'
+set system.wlan_led.sysfs='tp-link:green:wlan'
set system.wlan_led.trigger='phy0tpt'
set system.usb_led=led
set system.usb_led.name='USB'
-set system.usb_led.sysfs='tl-wr1043nd:green:usb'
+set system.usb_led.sysfs='tp-link:green:usb'
set system.usb_led.trigger='usbdev'
set system.usb_led.dev='1-1'
set system.usb_led.interval='50'
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/tl-wr941nd b/target/linux/ar71xx/base-files/etc/uci-defaults/tl-wr941nd
index 2033add37..2b904734c 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/tl-wr941nd
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/tl-wr941nd
@@ -11,7 +11,7 @@ tl_wr941nd_set_wlan_led() {
uci batch <<EOF
set system.wlan_led=led
set system.wlan_led.name='WLAN'
-set system.wlan_led.sysfs='tl-wr941nd:green:wlan'
+set system.wlan_led.sysfs='tp-link:green:wlan'
set system.wlan_led.trigger='phy0tpt'
commit system
EOF