projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bcm63xx: Allow 'colored' power leds.
[openwrt/svn-archive/archive.git]
/
target
/
linux
/
brcm63xx
/
base-files
/
etc
/
diag.sh
diff --git
a/target/linux/brcm63xx/base-files/etc/diag.sh
b/target/linux/brcm63xx/base-files/etc/diag.sh
index f77200aeed34e343496eb2e6713f1d046fa33894..cda52ac185a4ad93a6ee35d440373640a71c9e88 100755
(executable)
--- a/
target/linux/brcm63xx/base-files/etc/diag.sh
+++ b/
target/linux/brcm63xx/base-files/etc/diag.sh
@@
-61,7
+61,11
@@
set_state() {
status_led_set_timer 50 50
;;
done)
- status_led_off
+ if [ "${status_led#power}" != "$status_led" ]; then
+ status_led_on
+ else
+ status_led_off
+ fi
;;
esac
}