47e3eba5f764509c9c2517c44779ff7b8c41b0f4
[openwrt.git] / target / linux / cobalt / base-files / etc / diag.sh
1 #!/bin/sh
2 # Copyright (C) 2009 OpenWrt.org
3
4 set_state() {
5 case "$1" in
6 preinit)
7 [ -d /sys/class/leds/qube-front ] && {
8 echo none > /sys/class/leds/qube-front/trigger
9 echo 255 > /sys/class/leds/qube-front/brightness
10 }
11 ;;
12 done)
13 [ -d /sys/class/leds/qube-front ] && {
14 echo 0 > /sys/class/leds/qube-front/brightness
15 }
16 ;;
17 esac
18 }
This page took 0.039465 seconds and 3 git commands to generate.