base-files: fix shell scope error for the default LED brightness
authorAndre Heider <a.heider@gmail.com>
Sat, 14 Dec 2024 10:27:09 +0000 (11:27 +0100)
committerJohn Crispin <john@phrozen.org>
Sat, 14 Dec 2024 18:51:50 +0000 (19:51 +0100)
commit3c7134fa320b823ab7c5f91dd1ad948491d97478
tree7b669cf44f47cc07350725e95b65c33af6602598
parent15e173bf7e873d004d6c665ee81d54a10ce1f868
base-files: fix shell scope error for the default LED brightness

This fixes "sh: write error: Invalid argument" for all default!=1 LEDs
as an empty $brightness was used.

Setting up LEDs via luci also now works again.

Fixes cbdfd03e: "base-files: add option to set LED brightness"
Signed-off-by: Andre Heider <a.heider@gmail.com>
Link: https://github.com/openwrt/openwrt/issues/17269
Signed-off-by: John Crispin <john@phrozen.org>
package/base-files/files/etc/init.d/led