2012-05-29 16:39:15 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2014-05-28 21:43:39 +00:00
|
|
|
# Copyright (C) 2012-2014 OpenWrt.org
|
2012-05-29 16:39:15 +00:00
|
|
|
#
|
|
|
|
|
2012-06-13 18:41:42 +00:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2014-06-26 10:13:47 +00:00
|
|
|
. /lib/kirkwood.sh
|
2012-05-29 16:39:15 +00:00
|
|
|
|
2014-06-24 18:18:53 +00:00
|
|
|
board=$(kirkwood_board_name)
|
|
|
|
|
|
|
|
case "$board" in
|
|
|
|
"dockstar")
|
2013-10-31 12:04:04 +00:00
|
|
|
ucidef_set_led_default "health" "status:green:health" "1"
|
|
|
|
ucidef_set_led_default "fault" "status:orange:fault" "1"
|
|
|
|
;;
|
2014-11-10 23:55:10 +00:00
|
|
|
"ea3500")
|
|
|
|
ucidef_set_led_default "power" "ea3500:green:power" "1"
|
|
|
|
;;
|
2014-06-24 18:18:53 +00:00
|
|
|
"ea4500")
|
2014-05-28 21:43:39 +00:00
|
|
|
ucidef_set_led_default "health" "ea4500:white:health" "1"
|
|
|
|
ucidef_set_led_default "pulse" "ea4500:white:pulse" "1"
|
|
|
|
;;
|
2014-06-24 18:18:53 +00:00
|
|
|
"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"
|
|
|
|
;;
|
2012-05-29 16:39:15 +00:00
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2012-05-29 16:39:20 +00:00
|
|
|
ucidef_commit_leds
|
2012-05-29 16:39:15 +00:00
|
|
|
|
|
|
|
exit 0
|