projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[brcm63xx] register GPIO-connected LEDs for known boards
[openwrt.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
new file mode 100755
(executable)
index 0000000..
325e480
--- /dev/null
+++ b/
target/linux/brcm63xx/base-files/etc/diag.sh
@@ -0,0
+1,12
@@
+#!/bin/sh
+# Copyright (C) 2009 OpenWrt.org
+
+set_state() {
+ case "$1" in
+ done)
+ [ -d /sys/class/leds/power ] && {
+ echo 1 >/sys/class/leds/power/brightness
+ }
+ ;;
+ esac
+}