diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-07-18 00:40:23 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-07-18 00:40:23 +0000 |
commit | ecad504c39ee2d914d65c84b5ca1e4f7dd3d1c1d (patch) | |
tree | f567ffa76a035e20fb80338c59a7b81f0a403185 /target/linux/brcm63xx/base-files | |
parent | af6076273a89480a3ae8b3893999c170c9a26889 (diff) | |
download | upstream-ecad504c39ee2d914d65c84b5ca1e4f7dd3d1c1d.tar.gz upstream-ecad504c39ee2d914d65c84b5ca1e4f7dd3d1c1d.tar.bz2 upstream-ecad504c39ee2d914d65c84b5ca1e4f7dd3d1c1d.zip |
register GPIO-connected LEDs for known boards
SVN-Revision: 16887
Diffstat (limited to 'target/linux/brcm63xx/base-files')
-rwxr-xr-x | target/linux/brcm63xx/base-files/etc/diag.sh | 12 |
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 +} |