aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/base-files/etc/diag.sh
blob: 325e4806eaca66ad0311ef9d665a0851bbcd3eaa (plain)
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
}