bcm63xx: Allow 'colored' power leds.
authorDaniel Dickinson <crazycshore@gmail.com>
Sun, 28 Nov 2010 22:04:30 +0000 (22:04 +0000)
committerDaniel Dickinson <crazycshore@gmail.com>
Sun, 28 Nov 2010 22:04:30 +0000 (22:04 +0000)
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

target/linux/brcm63xx/base-files/etc/diag.sh

index fd9de29ad48308ed96fdd84cae9c0110c2f9e857..cda52ac185a4ad93a6ee35d440373640a71c9e88 100755 (executable)
@@ -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