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