aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-07-26 17:06:55 +0000
committerJohn Crispin <blogic@openwrt.org>2012-07-26 17:06:55 +0000
commitbda60588cf72fb44fda9ad047e3656f486096fb0 (patch)
treed25f28ef4c1c11896d7e4730d91eb08cb058930b /target/linux/atheros/base-files
parent38058ef2b9b90cd45f29813c03e9c7e3a3c6cd46 (diff)
downloadmaster-187ad058-bda60588cf72fb44fda9ad047e3656f486096fb0.tar.gz
master-187ad058-bda60588cf72fb44fda9ad047e3656f486096fb0.tar.bz2
master-187ad058-bda60588cf72fb44fda9ad047e3656f486096fb0.zip
[atheros] Add leds back after migration to sysfs
atheros trunk moved to full sysfs gpiolib, but the leds were forgotten. This restores the wlan led that was missing after switching from backfire to trunk. Signed-off-by: Karl Palsson <karlp@remake.is> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32885 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros/base-files')
-rw-r--r--target/linux/atheros/base-files/etc/uci-defaults/leds11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/atheros/base-files/etc/uci-defaults/leds b/target/linux/atheros/base-files/etc/uci-defaults/leds
new file mode 100644
index 0000000000..076a04bfdf
--- /dev/null
+++ b/target/linux/atheros/base-files/etc/uci-defaults/leds
@@ -0,0 +1,11 @@
+#!/bin/sh
+# Copyright 2012 OpenWrt.org
+#
+
+. /lib/functions/uci-defaults.sh
+
+ucidef_set_led_netdev "wlan" "wlan" "wlan" "wlan0"
+
+ucidef_commit_leds
+
+exit 0