aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorJaylin Yu <jaylin.yu@open-mesh.com>2016-11-11 16:12:36 +0100
committerJohn Crispin <john@phrozen.org>2016-11-16 10:54:33 +0100
commit7ee6ab1a317d463ce563b1505f3dc986655fda28 (patch)
tree96c081ab8de394aaed1d874df5304d0d6c890093 /target/linux
parent84d57fc4857a6d60c328dd63a31e39475b66db80 (diff)
downloadupstream-7ee6ab1a317d463ce563b1505f3dc986655fda28.tar.gz
upstream-7ee6ab1a317d463ce563b1505f3dc986655fda28.tar.bz2
upstream-7ee6ab1a317d463ce563b1505f3dc986655fda28.zip
ar71xx: Add usable, inactive LEDs on OpenMesh devices
OpenMesh devices have often LEDs which are not yet used by OpenWrt. These should still be available as disabled LEDs in the system configuration for easier modification. Signed-off-by: Jaylin Yu <jaylin.yu@open-mesh.com> [sven.eckelmann@open-mesh.com: Remove LEDs already specified via diag.sh, add wifi/status LEDs] Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds27
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index 16135a36a6..2a1138c443 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -289,18 +289,31 @@ mr18)
;;
mr600)
ucidef_set_led_wlan "wlan58" "WLAN58" "$board:green:wlan58" "phy0tpt"
+ ucidef_set_led_default "wps" "WPS" "mr600:blue:wps" "0"
+ ;;
+mr600v2)
+ ucidef_set_led_default "wlan24-red" "WLAN 2.4GHz (red)" "mr600:red:wlan24" "0"
+ ucidef_set_led_default "wlan24-yellow" "WLAN 2.4GHz (yellow)" "mr600:yellow:wlan24" "0"
+ ucidef_set_led_wlan "wlan24-green" "WLAN 4GHz (green)" "mr600:green:wlan24" "phy1tpt"
+ ucidef_set_led_default "wlan5-red" "WLAN 5GHz (red)" "mr600:red:wlan58" "0"
+ ucidef_set_led_default "wlan5-yellow" "WLAN 5GHz (yellow)" "mr600:yellow:wlan58" "0"
+ ucidef_set_led_wlan "wlan5-green" "WLAN 5GHz (green)" "mr600:green:wlan58" "phy0tpt"
;;
mr1750|\
mr1750v2)
ucidef_set_led_netdev "lan" "LAN" "mr1750:blue:wan" "eth0"
ucidef_set_led_wlan "wlan58" "WLAN58" "mr1750:blue:wlan58" "phy0tpt"
ucidef_set_led_wlan "wlan24" "WLAN24" "mr1750:blue:wlan24" "phy1tpt"
+ ucidef_set_led_default "status-red" "Status (red)" "mr1750:red:wifi" "0"
+ ucidef_set_led_default "status-green" "Status (green)" "mr1750:green:wifi" "0"
;;
mr900|\
mr900v2)
ucidef_set_led_netdev "lan" "LAN" "mr900:blue:wan" "eth0"
ucidef_set_led_wlan "wlan24" "WLAN24" "mr900:blue:wlan24" "phy0tpt"
ucidef_set_led_wlan "wlan58" "WLAN58" "mr900:blue:wlan58" "phy1tpt"
+ ucidef_set_led_default "status-red" "Status (red)" "mr900:red:wifi" "0"
+ ucidef_set_led_default "status-green" "Status (green)" "mr900:green:wifi" "0"
;;
mynet-n600)
ucidef_set_led_netdev "wan" "WAN" "wd:blue:internet" "eth1"
@@ -347,15 +360,29 @@ om2p-hsv3|\
om2p-lc)
ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
+ ucidef_set_led_default "wlan-red" "WLAN (red)" "om2p:red:wifi" "0"
+ ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om2p:yellow:wifi" "0"
+ ucidef_set_led_default "wlan-green" "WLAN (green)" "om2p:green:wifi" "0"
;;
om5p|\
om5p-an)
ucidef_set_led_netdev "port1" "port1" "om5p:blue:wan" "eth0"
ucidef_set_led_netdev "port2" "port2" "om5p:blue:lan" "eth1"
+ ucidef_set_led_default "wlan-red" "WLAN (red)" "om5p:red:wifi" "0"
+ ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5p:yellow:wifi" "0"
+ ucidef_set_led_default "wlan-green" "WLAN (green)" "om5p:green:wifi" "0"
;;
om5p-ac)
ucidef_set_led_netdev "port1" "port1" "om5pac:blue:lan" "eth0"
ucidef_set_led_netdev "port2" "port2" "om5pac:blue:wan" "eth1"
+ ucidef_set_led_default "wlan-red" "WLAN (red)" "om5pac:red:wifi" "0"
+ ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5pac:yellow:wifi" "0"
+ ucidef_set_led_default "wlan-green" "WLAN (green)" "om5pac:green:wifi" "0"
+ ;;
+om5p-acv2)
+ ucidef_set_led_default "wlan-red" "WLAN (red)" "om5pac:red:wifi" "0"
+ ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5pac:yellow:wifi" "0"
+ ucidef_set_led_default "wlan-green" "WLAN (green)" "om5pac:green:wifi" "0"
;;
omy-g1)
ucidef_set_led_wlan "wlan" "WLAN" "omy:green:wlan" "phy0tpt"