diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-05-08 21:38:49 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-05-08 21:38:49 +0000 |
commit | 8dd1a353b7decc259571cae01569a4431f45a5a6 (patch) | |
tree | ea33bc73adeabeaf6624558926fb76e341842eec /target/linux/ar71xx | |
parent | 9ebade84cf13b397d09b34fed9a61a47868e44ba (diff) | |
download | master-187ad058-8dd1a353b7decc259571cae01569a4431f45a5a6.tar.gz master-187ad058-8dd1a353b7decc259571cae01569a4431f45a5a6.tar.bz2 master-187ad058-8dd1a353b7decc259571cae01569a4431f45a5a6.zip |
ar71xx: add uci config for the WLAN LED on the WRT160NL
Based on a patch by Magyar Szabolcs <mszabi@freemail.hu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26861 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl | 11 |
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 |