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