kirkwood: consistently use engineering board names
[openwrt/staging/yousong.git] / target / linux / kirkwood / base-files / etc / uci-defaults / 01_leds
1 #!/bin/sh
2 #
3 # Copyright (C) 2012-2014 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7 . /lib/kirkwood.sh
8
9 board=$(kirkwood_board_name)
10
11 case "$board" in
12 "dockstar")
13 ucidef_set_led_default "health" "health" "status:green:health" "1"
14 ucidef_set_led_default "fault" "fault" "status:orange:fault" "1"
15 ;;
16 "linksys-audi")
17 ucidef_set_led_default "power" "power" "audi:green:power" "1"
18 ;;
19 "linksys-viper")
20 ucidef_set_led_default "health" "health" "viper:white:health" "1"
21 ucidef_set_led_default "pulse" "pulse" "viper:white:pulse" "1"
22 ;;
23 "goflexhome" | \
24 "goflexnet")
25 ucidef_set_led_default "health" "health" "status:green:health" "1"
26 ucidef_set_led_default "fault" "fault" "status:orange:fault" "0"
27 ;;
28 "ib62x0")
29 ucidef_set_led_default "health" "health" "ib62x0:green:os" "1"
30 ucidef_set_led_default "fault" "fault" "ib62x0:red:os" "1"
31 ;;
32 "pogo_e02")
33 ucidef_set_led_default "health" "health" "pogo_e02:green:health" "1"
34 ucidef_set_led_default "fault" "fault" "pogo_e02:orange:fault" "1"
35 ;;
36 "guruplug-server-plus")
37 ucidef_set_led_timer "health" "health" "guruplug:red:health" "200" "800"
38 ;;
39 "sheevaplug" | \
40 "sheevaplug-esata")
41 ucidef_set_led_timer "health" "health" "sheevaplug:blue:health" "200" "800"
42 ;;
43 *)
44 ;;
45 esac
46
47 ucidef_commit_leds
48
49 exit 0