summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx/base-files/etc
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-07-18 00:40:23 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-07-18 00:40:23 +0000
commitecad504c39ee2d914d65c84b5ca1e4f7dd3d1c1d (patch)
treef567ffa76a035e20fb80338c59a7b81f0a403185 /target/linux/brcm63xx/base-files/etc
parentaf6076273a89480a3ae8b3893999c170c9a26889 (diff)
downloadmtk-20170518-ecad504c39ee2d914d65c84b5ca1e4f7dd3d1c1d.zip
mtk-20170518-ecad504c39ee2d914d65c84b5ca1e4f7dd3d1c1d.tar.gz
mtk-20170518-ecad504c39ee2d914d65c84b5ca1e4f7dd3d1c1d.tar.bz2
register GPIO-connected LEDs for known boards
SVN-Revision: 16887
Diffstat (limited to 'target/linux/brcm63xx/base-files/etc')
-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 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
+}