[OpenWrt-Devel] [PATCH 1/2] lantiq, set default led configuration from /sys entry later, after per board settings
Eddi De Pieri
eddi at depieri.net
Fri Nov 7 17:12:27 EST 2014
Signed-off-by: Eddi De Pieri <eddi at depieri.net>
---
target/linux/lantiq/base-files/etc/uci-defaults/01_leds | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds b/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
index 2b3293b..c558543 100644
--- a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
@@ -12,11 +12,6 @@
[ -e "/sys/class/leds/usb2" ] && ucidef_set_led_usbdev "usb2" "usb2" "usb2" "2-1"
[ -e "/sys/class/leds/internet" ] && ucidef_set_led_netdev "internet" "internet" "internet" "pppoe-wan"
-for a in `ls /sys/class/leds/`; do
- grep -q "\[none\]" /sys/class/leds/$a/trigger
- [ $? -eq 0 ] && ucidef_set_led_default $a $a $a `cat /sys/class/leds/$a/brightness`
-done
-
board=$(lantiq_board_name)
case "$board" in
@@ -34,6 +29,11 @@ BTHOMEHUBV2B)
;;
esac
+for a in `ls /sys/class/leds/`; do
+ grep -q "\[none\]" /sys/class/leds/$a/trigger
+ [ $? -eq 0 ] && ucidef_set_led_default $a $a $a `cat /sys/class/leds/$a/brightness`
+done
+
ucidef_commit_leds
exit 0
--
1.7.10.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list