Add leds back after migration to sysfs
authorJohn Crispin <john@openwrt.org>
Thu, 26 Jul 2012 17:06:55 +0000 (17:06 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 26 Jul 2012 17:06:55 +0000 (17:06 +0000)
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

target/linux/atheros/base-files/etc/uci-defaults/leds [new file with mode: 0644]
target/linux/atheros/config-3.3

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 (file)
index 0000000..076a04b
--- /dev/null
@@ -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
index be0c74ab7cb425d94397943c724b59ae86d7e5d7..c3713b3dacfa111f3c0b01b9905d7033d720ceab 100644 (file)
@@ -70,6 +70,7 @@ CONFIG_INITRAMFS_SOURCE=""
 CONFIG_IP17XX_PHY=y
 CONFIG_IRQ_CPU=y
 CONFIG_IRQ_FORCED_THREADING=y
+CONFIG_LEDS_GPIO=y
 CONFIG_MDIO_BOARDINFO=y
 CONFIG_MIPS=y
 CONFIG_MIPS_L1_CACHE_SHIFT=5