summaryrefslogtreecommitdiff
path: root/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds
blob: 07c1a0ec0096e3fc0a3de3becb0c9b9c3cde2c20 (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
#!/bin/sh
#
# Copyright (C) 2012-2014 OpenWrt.org
#

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

board=$(kirkwood_board_name)

case "$board" in
"dockstar")
	ucidef_set_led_default "health" "status:green:health" "1"
	ucidef_set_led_default "fault" "status:orange:fault" "1"
	;;
"ea4500")
	ucidef_set_led_default "health" "ea4500:white:health" "1"
	ucidef_set_led_default "pulse" "ea4500:white:pulse" "1"
	;;
"ib62x0")
	ucidef_set_led_default "health" "ib62x0:green:os" "1"
	ucidef_set_led_default "fault" "ib62x0:red:os" "1"
	;;
"pogo_e02")
	ucidef_set_led_default "health" "status:green:health" "1"
	ucidef_set_led_default "fault" "status:orange:fault" "1"
	;;
*)
	;;
esac

ucidef_commit_leds

exit 0