base-files: reorder led trigger/brightness writes
authorFelix Fietkau <nbd@openwrt.org>
Thu, 16 Apr 2015 20:09:30 +0000 (20:09 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 16 Apr 2015 20:09:30 +0000 (20:09 +0000)
commit93fb3cac1b46bd290b3a52c3011d7ffc5d2e524b
treea115496f55eb2d105b341b73b9f50205c459b1fb
parentb3d699bdd3caa3d7e1db562ec67cf6b66da5e2df
base-files: reorder led trigger/brightness writes

Depending on configuration, disable the LED before writing the trigger
and enable it after writing it. Fixes LEDs where the value defaults to 1

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45463
package/base-files/files/etc/init.d/led