41191f753588048c34af611f9b227264f48a258f
[openwrt.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" "status:green:health" "1"
14         ucidef_set_led_default "fault" "status:orange:fault" "1"
15         ;;
16 "ea3500")
17         ucidef_set_led_default "power" "ea3500:green:power" "1"
18         ;;
19 "ea4500")
20         ucidef_set_led_default "health" "ea4500:white:health" "1"
21         ucidef_set_led_default "pulse" "ea4500:white:pulse" "1"
22         ;;
23 "ib62x0")
24         ucidef_set_led_default "health" "ib62x0:green:os" "1"
25         ucidef_set_led_default "fault" "ib62x0:red:os" "1"
26         ;;
27 "pogo_e02")
28         ucidef_set_led_default "health" "status:green:health" "1"
29         ucidef_set_led_default "fault" "status:orange:fault" "1"
30         ;;
31 *)
32         ;;
33 esac
34
35 ucidef_commit_leds
36
37 exit 0