aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-01-31 18:37:15 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-01-31 18:37:15 +0000
commit4946900ecc2d49c9c7eb663d942491d4dc303858 (patch)
tree1f8df85f991709114ce33f8306b0649fa904980c /target/linux/ar71xx/base-files/etc
parent780aecc9ca1d16c15695d001606ad4352b4c455e (diff)
downloadupstream-4946900ecc2d49c9c7eb663d942491d4dc303858.tar.gz
upstream-4946900ecc2d49c9c7eb663d942491d4dc303858.tar.bz2
upstream-4946900ecc2d49c9c7eb663d942491d4dc303858.zip
ar71xx: unify LED names on D-Link boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29974 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh12
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/leds12
2 files changed, 11 insertions, 13 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index a3d5075a28..7759113015 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -51,17 +51,15 @@ get_status_led() {
db120)
status_led="db120:green:status"
;;
- dir-600-a1)
- status_led="dir-600-a1:green:power"
+ dir-600-a1 |\
+ dir-615-e4)
+ status_led="d-link:green:power"
;;
dir-615-c1)
- status_led="dir-615c1:green:status"
- ;;
- dir-615-e4)
- status_led="dir-615-e4:green:power"
+ status_led="d-link:green:status"
;;
dir-825-b1)
- status_led="dir825b1:orange:power"
+ status_led="d-link:orange:power"
;;
eap7660d)
status_led="eap7660d:green:ds4"
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/leds b/target/linux/ar71xx/base-files/etc/uci-defaults/leds
index c33510af46..5b5aea35a4 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/leds
@@ -119,15 +119,15 @@ rb750)
;;
dir-615-e4)
- set_led_netdev "wan" "WAN" "dir-615-e4:green:wan" "eth1"
- set_led_switch "lan1" "LAN1" "dir-615-e4:green:lan1" "switch0" "0x02"
- set_led_switch "lan2" "LAN2" "dir-615-e4:green:lan2" "switch0" "0x04"
- set_led_switch "lan3" "LAN3" "dir-615-e4:green:lan3" "switch0" "0x08"
- set_led_switch "lan4" "LAN4" "dir-615-e4:green:lan4" "switch0" "0x10"
+ set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
+ set_led_switch "lan1" "LAN1" "d-link:green:lan1" "switch0" "0x02"
+ set_led_switch "lan2" "LAN2" "d-link:green:lan2" "switch0" "0x04"
+ set_led_switch "lan3" "LAN3" "d-link:green:lan3" "switch0" "0x08"
+ set_led_switch "lan4" "LAN4" "d-link:green:lan4" "switch0" "0x10"
;;
dir-825-b1)
- set_led_usbdev "usb" "USB" "dir825b1:blue:usb" "1-1"
+ set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1"
;;
hornet-ub)