2012-06-19 14:48:56 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2015-12-04 15:02:13 +00:00
|
|
|
# Copyright (C) 2012-2015 OpenWrt.org
|
2012-06-19 14:48:56 +00:00
|
|
|
#
|
|
|
|
|
2015-12-11 15:26:06 +00:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2012-06-19 14:48:56 +00:00
|
|
|
. /lib/mcs814x.sh
|
|
|
|
|
2015-12-04 15:02:13 +00:00
|
|
|
board_config_update
|
|
|
|
|
2012-06-19 14:48:56 +00:00
|
|
|
board=$(mcs814x_board_name)
|
|
|
|
|
|
|
|
case "$board" in
|
|
|
|
dlan-usb-extender)
|
2013-09-02 18:25:01 +00:00
|
|
|
ucidef_set_led_usbdev "usb" "USB" "dlan-usb-extender:green:usb" "2-1"
|
2012-06-19 14:48:56 +00:00
|
|
|
;;
|
|
|
|
rbt-832)
|
2012-06-20 21:58:00 +00:00
|
|
|
ucidef_set_led_usbdev "usb1" "USB1" "rbt-832:red:usb0" "1-1"
|
|
|
|
ucidef_set_led_usbdev "usb2" "USB2" "rbt-832:red:usb1" "1-2"
|
|
|
|
ucidef_set_led_usbdev "usb3" "USB3" "rbt-832:red:usb2" "1-3"
|
|
|
|
ucidef_set_led_usbdev "usb4" "USB4" "rbt-832:red:usb3" "1-4"
|
2012-06-20 21:57:56 +00:00
|
|
|
ucidef_set_led_netdev "eth" "eth" "rbt-832:red:ethernet" "eth0"
|
2012-06-19 14:48:56 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2015-12-04 15:02:13 +00:00
|
|
|
board_config_flush
|
2012-06-19 14:48:56 +00:00
|
|
|
|
|
|
|
exit 0
|