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 | c6ab7daf854987151acd6e6b62c541602a1d8567 (patch) | |
tree | 1085737833e393fdc7bd78dc89a34f86308c5471 /target/linux/brcm63xx/base-files | |
parent | b9e97b34b9ccd9b45b526e979cbeeb1c6674efc0 (diff) | |
download | master-187ad058-c6ab7daf854987151acd6e6b62c541602a1d8567.tar.gz master-187ad058-c6ab7daf854987151acd6e6b62c541602a1d8567.tar.bz2 master-187ad058-c6ab7daf854987151acd6e6b62c541602a1d8567.zip |
[brcm63xx] register GPIO-connected LEDs for known boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16887 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 +} |