Author: blogic Date: 2015-12-11 16:06:11 +0100 (Fri, 11 Dec 2015) New Revision: 47854
Modified: trunk/package/base-files/files/etc/init.d/led Log: 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 <[email protected]> Modified: trunk/package/base-files/files/etc/init.d/led =================================================================== --- trunk/package/base-files/files/etc/init.d/led 2015-12-11 15:06:01 UTC (rev 47853) +++ trunk/package/base-files/files/etc/init.d/led 2015-12-11 15:06:11 UTC (rev 47854) @@ -44,7 +44,7 @@ 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" _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
