bcm63xx: add unmodded SERCOMM AD1018 support
[openwrt/openwrt.git] / target / linux / bcm63xx / base-files / etc / board.d / 01_leds
1 #!/bin/sh
2 #
3 # Copyright (C) 2013-2015 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7
8 board_config_update
9
10 case "$(board_name)" in
11 actiontec,r1000h)
12 ucidef_set_led_usbport "usb" "USB" "R1000H:green:usb" "usb1-port1" "usb2-port1"
13 ;;
14 adb,a4001n)
15 ucidef_set_led_usbdev "usb" "USB" "A4001N:green:usb" "1-1"
16 ;;
17 adb,a4001n1)
18 ucidef_set_led_netdev "lan" "LAN" "A4001N1:green:eth" "eth0"
19 ucidef_set_led_usbdev "usb" "USB" "A4001N1:green:3g" "1-1"
20 ;;
21 adb,av4202n)
22 ucidef_set_led_netdev "wlan0" "WLAN" "AV4202N:blue:wifi" "wlan0"
23 ;;
24 bt,home-hub-2-a)
25 ucidef_set_led_netdev "lan" "LAN" "HOMEHUB2A:blue:broadband" "eth0.1"
26 ucidef_set_led_netdev "wlan0" "WIFI" "HOMEHUB2A:green:wireless" "wlan0"
27 ucidef_set_led_usbdev "usb1" "USB1" "HOMEHUB2A:blue:phone" "1-1"
28 ucidef_set_led_usbdev "usb2" "USB2" "HOMEHUB2A:green:phone" "2-1"
29 ;;
30 comtrend,ar-5315u)
31 ucidef_set_led_usbdev "usb" "USB" "AR-5315u:green:usb" "1-1"
32 ;;
33 comtrend,vr-3032u)
34 ucidef_set_led_usbdev "usb" "USB" "vr-3032u:green:usb" "1-1"
35 ;;
36 huawei,echolife-hg553)
37 ucidef_set_led_netdev "lan" "LAN" "HW553:blue:lan" "eth0"
38 ucidef_set_led_usbdev "usb1" "USB1" "HW553:red:hspa" "1-1"
39 ucidef_set_led_usbdev "usb2" "USB2" "HW553:blue:hspa" "1-2"
40 ;;
41 huawei,echolife-hg556a-a|\
42 huawei,echolife-hg556a-b|\
43 huawei,echolife-hg556a-c)
44 ucidef_set_led_netdev "lan" "LAN" "HW556:red:dsl" "eth0"
45 ucidef_set_led_usbdev "usb" "USB" "HW556:red:hspa" "1-2"
46 ;;
47 huawei,echolife-hg622)
48 ucidef_set_led_usbdev "usb" "USB" "HG622:green:usb" "1-2"
49 ;;
50 huawei,echolife-hg655b)
51 ucidef_set_led_usbdev "usb" "USB" "HW65x:green:usb" "1-2"
52 ;;
53 inventel,livebox-1)
54 ucidef_set_led_netdev "lan" "LAN" "Livebox1:red:traffic" "eth0"
55 ucidef_set_led_netdev "wan" "WAN" "Livebox1:red:adsl" "eth1"
56 ucidef_set_led_netdev "wlan0" "WIFI" "Livebox1:red:wifi" "wlan0"
57 ;;
58 netgear,dgnd3700-v1)
59 ucidef_set_led_netdev "lan" "LAN" "DGND3700v1_3800B:green:lan" "eth0.1"
60 ucidef_set_led_netdev "wan" "WAN" "DGND3700v1_3800B:green:inet" "eth0.2"
61 ucidef_set_led_netdev "wlan0" "WIFI2G" "DGND3700v1_3800B:green:wifi2g" "wlan0"
62 ucidef_set_led_netdev "wlan1" "WIFI5G" "DGND3700v1_3800B:blue:wifi5g" "wlan1"
63 ucidef_set_led_usbdev "usb1" "USB1" "DGND3700v1_3800B:green:usb-back" "1-1"
64 ucidef_set_led_usbdev "usb2" "USB2" "DGND3700v1_3800B:green:usb-front" "1-2"
65 ;;
66 netgear,dgnd3700-v2)
67 ucidef_set_led_netdev "lan" "LAN" "dgnd3700-v2:green:ethernet" "eth0"
68 ucidef_set_led_usbdev "usb1" "USB1" "dgnd3700-v2:green:usb1" "1-1"
69 ucidef_set_led_usbdev "usb2" "USB2" "dgnd3700-v2:green:usb2" "1-2"
70 ;;
71 netgear,evg2000)
72 ucidef_set_led_netdev "lan" "LAN" "EVG2000:green:lan" "eth0"
73 ucidef_set_led_netdev "wan" "WAN" "EVG2000:green:wan" "eth1"
74 ucidef_set_led_netdev "wlan0" "WIFI" "EVG2000:green:wireless" "wlan0"
75 ucidef_set_led_usbdev "usb1" "USB1" "EVG2000:green:voip1" "1-1"
76 ucidef_set_led_usbdev "usb2" "USB2" "EVG2000:green:voip2" "1-2"
77 ;;
78 nucom,r5010un-v2)
79 ucidef_set_led_usbdev "usb" "USB" "R5010UNv2:green:usb" "1-1"
80 ;;
81 sagem,fast-2704n)
82 ucidef_set_led_netdev "wan" "WAN" "F@ST2704N:green:inet" "eth0.2"
83 ;;
84 sagem,fast-2704-v2)
85 ucidef_set_led_usbdev "usb" "USB" "F@ST2704V2:green:usb" "1-1"
86 ;;
87 sercomm,ad1018|\
88 sercomm,ad1018-nor)
89 ucidef_set_led_netdev "wlan0" "WLAN" "AD1018:green:wifi" "wlan0"
90 ;;
91 telsey,cpva502plus)
92 ucidef_set_led_netdev "lan" "LAN" "CPVA502+:amber:link" "eth0"
93 ;;
94 esac
95
96 board_config_flush
97
98 exit 0