diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-12-17 17:09:57 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-12-17 17:09:57 +0000 |
commit | 091b0414803dd31f9a2471701d13f6b9c85dcb7f (patch) | |
tree | 91f51b6b5dc4eda0268d936f73701ab555067a54 /target/linux/ar71xx/base-files | |
parent | d4fe3146b7de1a7a67814c1f7392b75ea89aa610 (diff) | |
download | upstream-091b0414803dd31f9a2471701d13f6b9c85dcb7f.tar.gz upstream-091b0414803dd31f9a2471701d13f6b9c85dcb7f.tar.bz2 upstream-091b0414803dd31f9a2471701d13f6b9c85dcb7f.zip |
ar71xx: populate LED configuration for WZR-HP-G300NH
Signed-off-by: Dave Lichterman <laviddichterman@gmail.com>
[nand-disk trigger has been removed - juhosg]
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24642 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/wzr-hp-g300nh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/wzr-hp-g300nh b/target/linux/ar71xx/base-files/etc/uci-defaults/wzr-hp-g300nh new file mode 100755 index 0000000000..5602aab228 --- /dev/null +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/wzr-hp-g300nh @@ -0,0 +1,30 @@ +#!/bin/sh +# +# Copyright (C) 2010 OpenWrt.org +# + +. /lib/ar71xx.sh + +board=$(ar71xx_board_name) + +wzrhpg300nh_set_leds() { + uci batch <<EOF +add system led +set system.@led[-1]='led' +set system.@led[-1].name='Wireless' +set system.@led[-1].sysfs='wzr-hp-g300nh:green:wireless' +set system.@led[-1].trigger='phy0tpt' +add system led +set system.@led[-1]='led' +set system.@led[-1].name='Router' +set system.@led[-1].sysfs='wzr-hp-g300nh:green:router' +set system.@led[-1].trigger='netdev' +set system.@led[-1].dev='eth1' +set system.@led[-1].mode='link tx rx' +commit system +EOF +} + +if [ "${board}" == "wzr-hp-g300nh" ]; then + wzrhpg300nh_set_leds +fi |