2012-05-30 00:39:15 +08:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2013-10-15 03:46:40 +08:00
|
|
|
# Copyright (C) 2012-2013 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
|
2012-05-30 00:39:15 +08:00
|
|
|
"Seagate FreeAgent DockStar")
|
2012-05-30 00:39:20 +08:00
|
|
|
ucidef_set_led_netdev "eth0" "dockstar:orange:misc" "eth0"
|
|
|
|
ucidef_set_led_default "health" "dockstar:green:health" "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
|