2014-02-22 11:16:33 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2015-12-04 12:32:36 +00:00
|
|
|
# Copyright (C) 2013-2015 OpenWrt.org
|
2014-02-22 11:16:33 +00:00
|
|
|
#
|
|
|
|
|
2015-12-11 15:26:06 +00:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2014-02-22 11:16:33 +00:00
|
|
|
. /lib/brcm63xx.sh
|
|
|
|
|
2015-12-04 12:32:36 +00:00
|
|
|
board_config_update
|
|
|
|
|
2015-03-16 11:52:42 +00:00
|
|
|
case "$(brcm63xx_board_name)" in
|
|
|
|
a4001n1)
|
2014-07-12 12:31:30 +00:00
|
|
|
ucidef_set_led_netdev "lan" "LAN" "A4001N1:green:eth" "eth0"
|
|
|
|
ucidef_set_led_usbdev "usb" "USB" "A4001N1:green:3g" "1-1"
|
|
|
|
;;
|
2015-03-16 11:52:42 +00:00
|
|
|
a4001n)
|
2014-07-27 17:44:59 +00:00
|
|
|
ucidef_set_led_usbdev "usb" "USB" "A4001N:green:usb" "1-1"
|
|
|
|
;;
|
2016-12-23 23:24:44 +00:00
|
|
|
av4202n)
|
|
|
|
ucidef_set_led_netdev "wlan0" "WLAN" "AV4202N:blue:wifi" "wlan0"
|
|
|
|
;;
|
2015-03-16 11:52:42 +00:00
|
|
|
dgnd3700v1_dgnd3800b)
|
2015-03-16 11:52:10 +00:00
|
|
|
ucidef_set_led_netdev "lan" "LAN" "DGND3700v1_3800B:green:lan" "eth0.1"
|
|
|
|
ucidef_set_led_netdev "wan" "WAN" "DGND3700v1_3800B:green:inet" "eth0.2"
|
|
|
|
ucidef_set_led_netdev "wlan0" "WIFI2G" "DGND3700v1_3800B:green:wifi2g" "wlan0"
|
|
|
|
ucidef_set_led_netdev "wlan1" "WIFI5G" "DGND3700v1_3800B:blue:wifi5g" "wlan1"
|
|
|
|
ucidef_set_led_usbdev "usb1" "USB1" "DGND3700v1_3800B:green:usb-back" "1-1"
|
|
|
|
ucidef_set_led_usbdev "usb2" "USB2" "DGND3700v1_3800B:green:usb-front" "1-2"
|
|
|
|
;;
|
2016-05-22 22:56:23 +00:00
|
|
|
evg2000)
|
|
|
|
ucidef_set_led_netdev "lan" "LAN" "EVG2000:green:lan" "eth0"
|
|
|
|
ucidef_set_led_netdev "wan" "WAN" "EVG2000:green:wan" "eth1"
|
|
|
|
ucidef_set_led_netdev "wlan0" "WIFI" "EVG2000:green:wireless" "wlan0"
|
|
|
|
ucidef_set_led_usbdev "usb1" "USB1" "EVG2000:green:voip1" "1-1"
|
|
|
|
ucidef_set_led_usbdev "usb2" "USB2" "EVG2000:green:voip2" "1-2"
|
|
|
|
;;
|
2015-08-05 13:55:37 +00:00
|
|
|
fast2704n)
|
|
|
|
ucidef_set_led_netdev "wan" "WAN" "F@ST2704N:green:inet" "eth0.2"
|
|
|
|
;;
|
2015-03-16 11:52:42 +00:00
|
|
|
fast2704v2)
|
2014-02-22 11:16:33 +00:00
|
|
|
ucidef_set_led_usbdev "usb" "USB" "F@ST2704V2:green:usb" "1-1"
|
|
|
|
;;
|
2015-03-16 11:52:42 +00:00
|
|
|
hg553)
|
2014-07-12 12:31:39 +00:00
|
|
|
ucidef_set_led_netdev "lan" "LAN" "HW553:blue:lan" "eth0"
|
|
|
|
ucidef_set_led_usbdev "usb1" "USB1" "HW553:red:hspa" "1-1"
|
|
|
|
ucidef_set_led_usbdev "usb2" "USB2" "HW553:blue:hspa" "1-2"
|
|
|
|
;;
|
2015-03-16 11:52:42 +00:00
|
|
|
hg556a_*)
|
2014-07-12 12:31:43 +00:00
|
|
|
ucidef_set_led_netdev "lan" "LAN" "HW556:red:dsl" "eth0"
|
|
|
|
ucidef_set_led_usbdev "usb" "USB" "HW556:red:hspa" "1-2"
|
|
|
|
;;
|
2016-01-18 10:47:23 +00:00
|
|
|
hg622)
|
|
|
|
ucidef_set_led_usbdev "usb" "USB" "HG622:green:usb" "1-2"
|
|
|
|
;;
|
2015-05-21 19:31:54 +00:00
|
|
|
hg655b)
|
|
|
|
ucidef_set_led_usbdev "usb" "USB" "HW65x:green:usb" "1-2"
|
|
|
|
;;
|
2015-03-25 15:35:12 +00:00
|
|
|
homehub2a)
|
|
|
|
ucidef_set_led_netdev "lan" "LAN" "HOMEHUB2A:blue:broadband" "eth0.1"
|
|
|
|
ucidef_set_led_netdev "wlan0" "WIFI" "HOMEHUB2A:green:wireless" "wlan0"
|
|
|
|
ucidef_set_led_usbdev "usb1" "USB1" "HOMEHUB2A:blue:phone" "1-1"
|
|
|
|
ucidef_set_led_usbdev "usb2" "USB2" "HOMEHUB2A:green:phone" "2-1"
|
|
|
|
;;
|
2016-08-29 14:03:49 +00:00
|
|
|
livebox1)
|
|
|
|
ucidef_set_led_netdev "lan" "LAN" "Livebox1:red:traffic" "eth0"
|
|
|
|
ucidef_set_led_netdev "wan" "WAN" "Livebox1:red:adsl" "eth1"
|
|
|
|
ucidef_set_led_netdev "wlan0" "WIFI" "Livebox1:red:wifi" "wlan0"
|
|
|
|
;;
|
2015-12-02 22:18:20 +00:00
|
|
|
r5010un_v2)
|
|
|
|
ucidef_set_led_usbdev "usb" "USB" "R5010UNv2:green:usb" "1-1"
|
|
|
|
;;
|
2014-02-22 11:16:33 +00:00
|
|
|
esac
|
|
|
|
|
2015-12-04 12:32:36 +00:00
|
|
|
board_config_flush
|
2014-02-22 11:16:33 +00:00
|
|
|
|
|
|
|
exit 0
|