2012-05-29 16:39:15 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2013-10-14 19:46:40 +00:00
|
|
|
# Copyright (C) 2012-2013 OpenWrt.org
|
2012-05-29 16:39:15 +00:00
|
|
|
#
|
|
|
|
|
2012-06-13 18:41:42 +00:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2012-05-29 16:39:15 +00:00
|
|
|
|
2013-10-14 19:46:40 +00:00
|
|
|
case "`cat /proc/device-tree/model`" in
|
2014-02-15 23:53:10 +00:00
|
|
|
"Seagate FreeAgent Dockstar")
|
|
|
|
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
|
|
|
;;
|
2013-10-31 12:04:04 +00:00
|
|
|
"Cloud Engines Pogoplug 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
|