summaryrefslogtreecommitdiff
path: root/target/linux/atheros/base-files/etc
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-07-26 17:06:55 +0000
committerJohn Crispin <john@openwrt.org>2012-07-26 17:06:55 +0000
commit0ba7b18cfd089200b0c2c4f597f43fb558ceaf34 (patch)
treebf4fc6ac02520c337a54d79de2c11e44c1cc42a7 /target/linux/atheros/base-files/etc
parent46611b2cbfc3534c029416f4a3951cd01534835d (diff)
downloadmtk-20170518-0ba7b18cfd089200b0c2c4f597f43fb558ceaf34.zip
mtk-20170518-0ba7b18cfd089200b0c2c4f597f43fb558ceaf34.tar.gz
mtk-20170518-0ba7b18cfd089200b0c2c4f597f43fb558ceaf34.tar.bz2
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> SVN-Revision: 32885
Diffstat (limited to 'target/linux/atheros/base-files/etc')
-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 0000000..076a04b
--- /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