base-files: don't wipe LED state when adding a single LED
authorDaniel Golle <daniel@makrotopia.org>
Sat, 5 Oct 2024 17:20:35 +0000 (18:20 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 7 Oct 2024 00:41:32 +0000 (01:41 +0100)
commitdae6a871de3df0adca5b7f29a32c8c0642a9415e
tree1b66a4ed68811e16ace5b78b54f554a4dc6ef19d
parent0b05cc70480af9056f2d1c1efdd464163c50a05a
base-files: don't wipe LED state when adding a single LED

Only replace LED state of a single LED instead of removing the entire
/var/run/led.state file.

Fixes: 511e8f84d0 ("base-files: configure LED when added")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/base-files/files/etc/init.d/led