mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[brcm63xx] register GPIO-connected LEDs for known boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16887 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
12
target/linux/brcm63xx/base-files/etc/diag.sh
Executable file
12
target/linux/brcm63xx/base-files/etc/diag.sh
Executable file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user