1 2 3 4 5 6 7 8 9 10 11 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 }