openwrt/target/linux/brcm63xx/base-files/etc/diag.sh
Florian Fainelli ecad504c39 register GPIO-connected LEDs for known boards
SVN-Revision: 16887
2009-07-18 00:40:23 +00:00

13 lines
292 B
Bash
Executable File

#!/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
}