base-files: reorder led trigger/brightness writes
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 16 Apr 2015 20:09:30 +0000 (20:09 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 16 Apr 2015 20:09:30 +0000 (20:09 +0000)
commitb515c2368fc94793bd3711fb77c8f46d211b9da8
treed68c478d88f24fb9741cb478cf81944d72f5cea9
parent35047186bd53d35261169441f08ae867c7652380
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45463 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/files/etc/init.d/led