summaryrefslogtreecommitdiff
path: root/target/linux/kirkwood/base-files/etc/board.d/01_leds
blob: e6da9fd49a045c0b4eccc311a9d039771773b48e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
#
# Copyright (C) 2012-2015 OpenWrt.org
#

. /lib/functions/uci-defaults.sh
. /lib/kirkwood.sh

board_config_update

board=$(kirkwood_board_name)

case "$board" in
"dockstar")
	ucidef_set_led_default "health" "health" "status:green:health" "1"
	ucidef_set_led_default "fault" "fault" "status:orange:fault" "1"
	;;
"linksys-audi")
	ucidef_set_led_default "power" "power" "audi:green:power" "1"
	;;
"linksys-viper")
	ucidef_set_led_default "health" "health" "viper:white:health" "1"
	ucidef_set_led_default "pulse" "pulse" "viper:white:pulse" "1"
	;;
"goflexhome" | \
"goflexnet")
	ucidef_set_led_default "health" "health" "status:green:health" "1"
	ucidef_set_led_default "fault" "fault" "status:orange:fault" "0"
	;;
"ib62x0")
	ucidef_set_led_default "health" "health" "ib62x0:green:os" "1"
	ucidef_set_led_default "fault" "fault" "ib62x0:red:os" "1"
	;;
"pogo_e02")
	ucidef_set_led_default "health" "health" "pogo_e02:green:health" "1"
	ucidef_set_led_default "fault" "fault" "pogo_e02:orange:fault" "1"
	;;
"guruplug-server-plus")
	ucidef_set_led_timer "health" "health" "guruplug:red:health" "200" "800"
	;;
"nsa310b")
	ucidef_set_led_default "health" "health" "nsa310:green:sys" "1"
	;;
"nsa325")
	ucidef_set_led_default "health" "health" "nsa325:green:sys" "1"
	;;
"sheevaplug" | \
"sheevaplug-esata")
	ucidef_set_led_timer "health" "health" "sheevaplug:blue:health" "200" "800"
	;;
*)
	;;
esac

board_config_flush

exit 0