2012-05-30 00:39:15 +08:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2014-05-29 05:43:39 +08:00
|
|
|
# Copyright (C) 2012-2014 OpenWrt.org
|
2012-05-30 00:39:15 +08:00
|
|
|
#
|
|
|
|
|
2012-06-14 02:41:42 +08:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2012-05-30 00:39:15 +08:00
|
|
|
|
2013-10-15 03:46:40 +08:00
|
|
|
case "`cat /proc/device-tree/model`" in
|
2014-02-16 07:53:10 +08:00
|
|
|
"Seagate FreeAgent Dockstar")
|
|
|
|
ucidef_set_led_default "health" "status:green:health" "1"
|
|
|
|
ucidef_set_led_default "fault" "status:orange:fault" "1"
|
2012-05-30 00:39:15 +08:00
|
|
|
;;
|
2013-10-31 20:04:04 +08:00
|
|
|
"Cloud Engines Pogoplug E02")
|
|
|
|
ucidef_set_led_default "health" "status:green:health" "1"
|
|
|
|
ucidef_set_led_default "fault" "status:orange:fault" "1"
|
|
|
|
;;
|
2014-05-29 05:43:39 +08:00
|
|
|
"Linksys EA4500")
|
|
|
|
ucidef_set_led_default "health" "ea4500:white:health" "1"
|
|
|
|
ucidef_set_led_default "pulse" "ea4500:white:pulse" "1"
|
|
|
|
;;
|
2012-05-30 00:39:15 +08:00
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2012-05-30 00:39:20 +08:00
|
|
|
ucidef_commit_leds
|
2012-05-30 00:39:15 +08:00
|
|
|
|
|
|
|
exit 0
|