aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-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