aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/base-files
diff options
context:
space:
mode:
authorDaniel Dickinson <daniel@cshore.neomailbox.net>2010-11-28 22:04:30 +0000
committerDaniel Dickinson <daniel@cshore.neomailbox.net>2010-11-28 22:04:30 +0000
commite21b57d529fbfee699ff66ca328d03c2ddb579f2 (patch)
tree68cbe16da60df0e42bd16fee4c6f06adb2c6052c /target/linux/brcm63xx/base-files
parent94a1adaf05993797f18f33b0a4bdd0ae2dba1743 (diff)
downloadupstream-e21b57d529fbfee699ff66ca328d03c2ddb579f2.tar.gz
upstream-e21b57d529fbfee699ff66ca328d03c2ddb579f2.tar.bz2
upstream-e21b57d529fbfee699ff66ca328d03c2ddb579f2.zip
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24187 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/base-files')
-rwxr-xr-xtarget/linux/brcm63xx/base-files/etc/diag.sh2
1 files changed, 1 insertions, 1 deletions
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