aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-05-08 21:38:49 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-05-08 21:38:49 +0000
commitb39eebdf1e26b41cb7dad800107447b7eb43f4b1 (patch)
tree1e5f57f5570b9e717ccb3cd315c9b6188029e28f /target/linux/ar71xx
parent858e2e719b7a0c30b824df8e2d8bd17ff1627151 (diff)
downloadupstream-b39eebdf1e26b41cb7dad800107447b7eb43f4b1.tar.gz
upstream-b39eebdf1e26b41cb7dad800107447b7eb43f4b1.tar.bz2
upstream-b39eebdf1e26b41cb7dad800107447b7eb43f4b1.zip
ar71xx: add uci config for the WLAN LED on the WRT160NL
Based on a patch by Magyar Szabolcs <mszabi@freemail.hu> SVN-Revision: 26861
Diffstat (limited to 'target/linux/ar71xx')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl b/target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl
index dce28dde94..7a31024396 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl
@@ -11,6 +11,17 @@ wrt160nl_fixtrx() {
mtd -o 32 fixtrx firmware
}
+wrt160nl_setup_leds() {
+ uci batch <<EOF
+set system.wlan_led=led
+set system.wlan_led.name='WLAN'
+set system.wlan_led.sysfs='wrt160nl:blue:wlan'
+set system.wlan_led.trigger='phy0tpt'
+commit system
+EOF
+}
+
if [ "${board}" == "wrt160nl" ]; then
wrt160nl_fixtrx
+ wrt160nl_setup_leds
fi