bcm63xx: Allow 'colored' power leds.

Since some devices have more than one power led, they might be separated by
their color in the name. To also allow them to be on after leaving preinit,
set any status led starting with 'power' to on instead of only those with
the exact name of 'power'.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>

SVN-Revision: 24187
lede-17.01
Daniel Dickinson 2010-11-28 22:04:30 +00:00
parent fec30c8c80
commit 8fa9b24a4c
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ set_state() {
status_led_set_timer 50 50
;;
done)
if [ "$status_led" = "power" ]; then
if [ "${status_led#power}" != "$status_led" ]; then
status_led_on
else
status_led_off