aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/brcm63xx/base-files')
-rwxr-xr-xtarget/linux/brcm63xx/base-files/etc/diag.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh b/target/linux/brcm63xx/base-files/etc/diag.sh
new file mode 100755
index 0000000000..325e4806ea
--- /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
+}