2012-05-30 00:39:15 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
#
|
2015-12-04 06:27:18 +08:00
|
|
|
# Copyright (C) 2012-2015 OpenWrt.org
|
2012-05-30 00:39:15 +08:00
|
|
|
#
|
|
|
|
|
|
2015-12-11 23:26:06 +08:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2014-06-26 18:13:47 +08:00
|
|
|
. /lib/kirkwood.sh
|
2012-05-30 00:39:15 +08:00
|
|
|
|
2015-12-04 06:27:18 +08:00
|
|
|
board_config_update
|
|
|
|
|
|
2014-06-25 02:18:53 +08:00
|
|
|
board=$(kirkwood_board_name)
|
|
|
|
|
|
|
|
|
|
case "$board" in
|
|
|
|
|
"dockstar")
|
2015-01-17 22:39:01 +08:00
|
|
|
ucidef_set_led_default "health" "health" "status:green:health" "1"
|
|
|
|
|
ucidef_set_led_default "fault" "fault" "status:orange:fault" "1"
|
2013-10-31 20:04:04 +08:00
|
|
|
;;
|
2015-11-10 08:16:28 +08:00
|
|
|
"linksys-audi")
|
|
|
|
|
ucidef_set_led_default "power" "power" "audi:green:power" "1"
|
2014-11-11 07:55:10 +08:00
|
|
|
;;
|
2015-11-10 08:16:28 +08:00
|
|
|
"linksys-viper")
|
|
|
|
|
ucidef_set_led_default "health" "health" "viper:white:health" "1"
|
|
|
|
|
ucidef_set_led_default "pulse" "pulse" "viper:white:pulse" "1"
|
2014-05-29 05:43:39 +08:00
|
|
|
;;
|
2015-05-09 04:12:39 +08:00
|
|
|
"goflexhome" | \
|
2015-02-12 22:39:26 +08:00
|
|
|
"goflexnet")
|
2015-12-04 06:27:18 +08:00
|
|
|
ucidef_set_led_default "health" "health" "status:green:health" "1"
|
|
|
|
|
ucidef_set_led_default "fault" "fault" "status:orange:fault" "0"
|
2015-02-12 22:39:26 +08:00
|
|
|
;;
|
2014-06-25 02:18:53 +08:00
|
|
|
"ib62x0")
|
2015-01-17 22:39:01 +08:00
|
|
|
ucidef_set_led_default "health" "health" "ib62x0:green:os" "1"
|
|
|
|
|
ucidef_set_led_default "fault" "fault" "ib62x0:red:os" "1"
|
2014-06-25 02:18:53 +08:00
|
|
|
;;
|
|
|
|
|
"pogo_e02")
|
2015-11-05 06:28:42 +08:00
|
|
|
ucidef_set_led_default "health" "health" "pogo_e02:green:health" "1"
|
|
|
|
|
ucidef_set_led_default "fault" "fault" "pogo_e02:orange:fault" "1"
|
2014-06-25 02:18:53 +08:00
|
|
|
;;
|
2014-12-19 19:05:13 +08:00
|
|
|
"guruplug-server-plus")
|
2015-01-17 22:39:01 +08:00
|
|
|
ucidef_set_led_timer "health" "health" "guruplug:red:health" "200" "800"
|
2014-12-19 19:05:13 +08:00
|
|
|
;;
|
|
|
|
|
"sheevaplug" | \
|
|
|
|
|
"sheevaplug-esata")
|
2015-01-17 22:39:01 +08:00
|
|
|
ucidef_set_led_timer "health" "health" "sheevaplug:blue:health" "200" "800"
|
2014-12-19 19:05:13 +08:00
|
|
|
;;
|
2012-05-30 00:39:15 +08:00
|
|
|
*)
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
2015-12-04 06:27:18 +08:00
|
|
|
board_config_flush
|
2012-05-30 00:39:15 +08:00
|
|
|
|
|
|
|
|
exit 0
|