diff options
author | John Crispin <blogic@openwrt.org> | 2015-12-11 15:06:11 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-12-11 15:06:11 +0000 |
commit | 506ea4133327965916a02a3ba4b68b9836d36c4c (patch) | |
tree | 21fdc98e909994fb40adca680f1633b8844cd115 /package/base-files | |
parent | 1d1272f6edac14fa38437b43b72ea70548620c91 (diff) | |
download | master-187ad058-506ea4133327965916a02a3ba4b68b9836d36c4c.tar.gz master-187ad058-506ea4133327965916a02a3ba4b68b9836d36c4c.tar.bz2 master-187ad058-506ea4133327965916a02a3ba4b68b9836d36c4c.zip |
base-files: use max_brightness to set LED
LEDs which are controlled by a PWM need to use the supplied
max_brightness instead. Otherwise they might appear to be
very dim / broken.
Signed-off-by: Chris R Blake <chrisrblake93@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47854 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-x | package/base-files/files/etc/init.d/led | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led index 3f45732499..84cd028bd8 100755 --- a/package/base-files/files/etc/init.d/led +++ b/package/base-files/files/etc/init.d/led @@ -44,7 +44,7 @@ load_led() { ret="$?" [ $default = 1 ] && - echo 1 >/sys/class/leds/${sysfs}/brightness + cat /sys/class/leds/${sysfs}/max_brightness > /sys/class/leds/${sysfs}/brightness [ $ret = 0 ] || { echo >&2 "Skipping trigger '$trigger' for led '$name' due to missing kernel module" |