From: Daniel Dickinson Date: Sun, 28 Nov 2010 22:04:30 +0000 (+0000) Subject: bcm63xx: Allow 'colored' power leds. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8fa9b24a4c7635158758d69ee4c804a24e0e20d7;p=openwrt%2Fstaging%2Fmans0n.git 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 SVN-Revision: 24187 --- diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh b/target/linux/brcm63xx/base-files/etc/diag.sh index fd9de29ad4..cda52ac185 100755 --- a/target/linux/brcm63xx/base-files/etc/diag.sh +++ b/target/linux/brcm63xx/base-files/etc/diag.sh @@ -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