Changeset 47854


Ignore:
Timestamp:
2015-12-11T16:06:11+01:00 (2 years ago)
Author:
blogic
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/etc/init.d/led

    r46341 r47854  
    4545 
    4646                [ $default = 1 ] && 
    47                         echo 1 >/sys/class/leds/${sysfs}/brightness 
     47                        cat /sys/class/leds/${sysfs}/max_brightness > /sys/class/leds/${sysfs}/brightness 
    4848 
    4949                [ $ret = 0 ] || { 
Note: See TracChangeset for help on using the changeset viewer.