mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
7437be53ba
Add Support for the Seagate GoflexHome <http://wiki.openwrt.org/toh/seagate/goflexhome> Signed-off-by: L. D. Pinney <ldpinney@gmail.com> SVN-Revision: 45647
50 lines
1.2 KiB
Bash
50 lines
1.2 KiB
Bash
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2012-2014 OpenWrt.org
|
|
#
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
. /lib/kirkwood.sh
|
|
|
|
board=$(kirkwood_board_name)
|
|
|
|
case "$board" in
|
|
"dockstar")
|
|
ucidef_set_led_default "health" "health" "status:green:health" "1"
|
|
ucidef_set_led_default "fault" "fault" "status:orange:fault" "1"
|
|
;;
|
|
"ea3500")
|
|
ucidef_set_led_default "power" "power" "ea3500:green:power" "1"
|
|
;;
|
|
"ea4500")
|
|
ucidef_set_led_default "health" "health" "ea4500:white:health" "1"
|
|
ucidef_set_led_default "pulse" "pulse" "ea4500:white:pulse" "1"
|
|
;;
|
|
"goflexhome" | \
|
|
"goflexnet")
|
|
ucidef_set_led_default "health" "health" "status:green:health" "1"
|
|
ucidef_set_led_default "fault" "fault" "status:orange:fault" "0"
|
|
;;
|
|
"ib62x0")
|
|
ucidef_set_led_default "health" "health" "ib62x0:green:os" "1"
|
|
ucidef_set_led_default "fault" "fault" "ib62x0:red:os" "1"
|
|
;;
|
|
"pogo_e02")
|
|
ucidef_set_led_default "health" "health" "status:green:health" "1"
|
|
ucidef_set_led_default "fault" "fault" "status:orange:fault" "1"
|
|
;;
|
|
"guruplug-server-plus")
|
|
ucidef_set_led_timer "health" "health" "guruplug:red:health" "200" "800"
|
|
;;
|
|
"sheevaplug" | \
|
|
"sheevaplug-esata")
|
|
ucidef_set_led_timer "health" "health" "sheevaplug:blue:health" "200" "800"
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
ucidef_commit_leds
|
|
|
|
exit 0
|