strip the kernel version suffix from target directories, except for brcm-2.4 (the...
[openwrt.git] / target / linux / au1000 / base-files / default / etc / diag.sh
1 #!/bin/sh
2 # Copyright (C) 2007 OpenWrt.org
3
4 set_led() {
5 local led="$1"
6 local state="$2"
7 [ -d "/sys/class/leds/mtx1:$led" ] && echo "$state" > "/sys/class/leds/mtx1:$led/brightness"
8 }
9
10 set_state() {
11 case "$1" in
12 preinit)
13 set_led green 0
14 set_led red 1
15 ;;
16 failsafe)
17 set_led green 1
18 set_led red 1
19 ;;
20 done)
21 set_led green 1
22 set_led red 0
23 ;;
24 esac
25 }
This page took 0.055905 seconds and 5 git commands to generate.