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")
|
2015-01-17 14:39:01 +00:00
|
|
|
ucidef_set_led_default "health" "health" "status:green:health" "1"
|
|
|
|
ucidef_set_led_default "fault" "fault" "status:orange:fault" "1"
|
2013-10-31 12:04:04 +00:00
|
|
|
;;
|
2014-11-10 23:55:10 +00:00
|
|
|
"ea3500")
|
2015-01-17 14:39:01 +00:00
|
|
|
ucidef_set_led_default "power" "power" "ea3500:green:power" "1"
|
2014-11-10 23:55:10 +00:00
|
|
|
;;
|
2014-06-24 18:18:53 +00:00
|
|
|
"ea4500")
|
2015-01-17 14:39:01 +00:00
|
|
|
ucidef_set_led_default "health" "health" "ea4500:white:health" "1"
|
|
|
|
ucidef_set_led_default "pulse" "pulse" "ea4500:white:pulse" "1"
|
2014-05-28 21:43:39 +00:00
|
|
|
;;
|
2015-05-08 20:12:39 +00:00
|
|
|
"goflexhome" | \
|
2015-02-12 14:39:26 +00:00
|
|
|
"goflexnet")
|
|
|
|
ucidef_set_led_default "health" "health" "status:green:health" "1"
|
|
|
|
ucidef_set_led_default "fault" "fault" "status:orange:fault" "0"
|
|
|
|
;;
|
2014-06-24 18:18:53 +00:00
|
|
|
"ib62x0")
|
2015-01-17 14:39:01 +00:00
|
|
|
ucidef_set_led_default "health" "health" "ib62x0:green:os" "1"
|
|
|
|
ucidef_set_led_default "fault" "fault" "ib62x0:red:os" "1"
|
2014-06-24 18:18:53 +00:00
|
|
|
;;
|
|
|
|
"pogo_e02")
|
2015-01-17 14:39:01 +00:00
|
|
|
ucidef_set_led_default "health" "health" "status:green:health" "1"
|
|
|
|
ucidef_set_led_default "fault" "fault" "status:orange:fault" "1"
|
2014-06-24 18:18:53 +00:00
|
|
|
;;
|
2014-12-19 11:05:13 +00:00
|
|
|
"guruplug-server-plus")
|
2015-01-17 14:39:01 +00:00
|
|
|
ucidef_set_led_timer "health" "health" "guruplug:red:health" "200" "800"
|
2014-12-19 11:05:13 +00:00
|
|
|
;;
|
|
|
|
"sheevaplug" | \
|
|
|
|
"sheevaplug-esata")
|
2015-01-17 14:39:01 +00:00
|
|
|
ucidef_set_led_timer "health" "health" "sheevaplug:blue:health" "200" "800"
|
2014-12-19 11:05:13 +00:00
|
|
|
;;
|
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
|