v3: CC : ar71xx: Backport Support for the Bitmain Antminer S3
[15.05/openwrt.git] / target / linux / ar71xx / base-files / etc / uci-defaults / 01_leds
1 #!/bin/sh
2 #
3 # Copyright (C) 2011 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7 . /lib/ar71xx.sh
8
9 board=$(ar71xx_board_name)
10
11 case "$board" in
12 airgateway)
13         ucidef_set_led_wlan "wlan" "WLAN" "ubnt:blue:wlan" "phy0tpt"
14         ;;
15 alfa-nx)
16         ucidef_set_led_netdev "wan" "WAN" "alfa:green:led_2" "eth0"
17         ucidef_set_led_netdev "lan" "LAN" "alfa:green:led_3" "eth1"
18         ;;
19
20 all0258n)
21         ucidef_set_rssimon "wlan0" "40000" "1"
22         ucidef_set_led_rssi "rssilow" "RSSILOW" "all0258n:red:rssilow" "wlan0" "1" "40" "0" "6"
23         ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0258n:yellow:rssimedium" "wlan0" "30" "80" "-29" "5"
24         ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0258n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
25         ;;
26
27 all0315n)
28         ucidef_set_rssimon "wlan0" "40000" "1"
29         ucidef_set_led_rssi "rssilow" "RSSILOW" "all0315n:red:rssilow" "wlan0" "1" "40" "0" "6"
30         ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0315n:yellow:rssimedium" "wlan0" "30" "80" "-29" "5"
31         ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0315n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
32         ;;
33
34 antminer-s1)
35         ucidef_set_led_default "sys" "SYS" "bitmain:green:sys" "0"
36         ucidef_set_led_wlan "wlan" "WLAN" "bitmain:green:wlan" "phy0tpt"
37         ;;
38
39 antminer-s3)
40         ucidef_set_led_wlan "wlan" "WLAN" "bitmain:green:wlan" "phy0tpt"
41         ucidef_set_led_default "sys" "SYS" "bitmain:green:sys" "0"
42         ucidef_set_led_default "lan" "LAN" "bitmain:yellow:lan" "0"
43         ;;
44
45 ap113)
46         ucidef_set_led_usbdev "usb" "USB" "ap113:green:usb" "1-1"
47         ;;
48
49 bullet-m | \
50 nanostation-m | \
51 rocket-m | \
52 rocket-m-xw | \
53 nanostation-m-xw | \
54 loco-m-xw)
55         ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100" "0" "13"
56         ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:orange:link2" "wlan0" "26" "100" "-25" "13"
57         ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
58         ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
59         ;;
60
61 bxu2000n-2-a1)
62         ucidef_set_led_wlan "wlan" "WLAN" "bhu:green:wlan" "phy0tpt"
63         ;;
64
65 cap4200ag)
66         ucidef_set_led_default "lan_green" "LAN_GREEN" "senao:green:lan" "1"
67         ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "senao:amber:wlan" "phy0tpt"
68         ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "senao:green:wlan" "phy1tpt"
69         ;;
70
71 carambola2)
72         ucidef_set_led_netdev "lan" "LAN" "carambola2:orange:eth0" "eth0"
73         ucidef_set_led_netdev "wan" "WAN" "carambola2:orange:eth1" "eth1"
74         ucidef_set_led_wlan "wlan" "WLAN" "carambola2:green:wlan" "phy0tpt"
75         ;;
76
77 cpe510)
78         ucidef_set_led_switch "lan0" "LAN0" "tp-link:green:lan0" "switch0" "0x20"
79         ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
80         ucidef_set_rssimon "wlan0" "40000" "1"
81         ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:link1" "wlan0" "1" "100" "0" "13"
82         ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:link2" "wlan0" "26" "100" "-25" "13"
83         ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "51" "100" "-50" "13"
84         ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "76" "100" "-75" "13"
85         ;;
86
87 db120)
88         ucidef_set_led_usbdev "usb" "USB" "db120:green:usb" "1-1"
89         ;;
90
91 dragino2)
92         ucidef_set_led_wlan "wlan" "WLAN" "dragino2:red:wlan" "phy0tpt"
93         ucidef_set_led_netdev "lan" "LAN" "dragino2:red:lan" "eth0"
94         ucidef_set_led_netdev "wan" "WAN" "dragino2:red:wan" "eth1"
95         ;;
96
97 eap300v2)
98         ucidef_set_led_netdev "lan" "LAN" "engenius:blue:lan" "eth0"
99         ucidef_set_led_wlan "wlan" "WLAN" "engenius:blue:wlan" "phy0tpt"
100         ;;
101
102 f9k1115v2)
103         ucidef_set_led_usbdev "usb2" "USB2" "belkin:green:usb2" "1-1"
104         ;;
105
106 rb-750)
107         ucidef_set_led_default "act" "act" "rb750:green:act" "1"
108         ucidef_set_led_netdev "port1" "port1" "rb750:green:port1" "eth1"
109         ucidef_set_led_switch "port2" "port2" "rb750:green:port2" "switch0" "0x10"
110         ucidef_set_led_switch "port3" "port3" "rb750:green:port3" "switch0" "0x08"
111         ucidef_set_led_switch "port4" "port4" "rb750:green:port4" "switch0" "0x04"
112         ucidef_set_led_switch "port5" "port5" "rb750:green:port5" "switch0" "0x02"
113         ;;
114
115 rb-2011l|\
116 rb-2011uas|\
117 rb-2011uias|\
118 rb-2011uas-2hnd|\
119 rb-2011uias-2hnd)
120         ucidef_set_led_switch "eth6" "ETH6" "rb:green:eth6" "switch1" "0x20"
121         ucidef_set_led_switch "eth7" "ETH7" "rb:green:eth7" "switch1" "0x10"
122         ucidef_set_led_switch "eth8" "ETH8" "rb:green:eth8" "switch1" "0x08"
123         ucidef_set_led_switch "eth9" "ETH9" "rb:green:eth9" "switch1" "0x04"
124         ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
125         ;;
126
127 dhp-1565-a1)
128         ucidef_set_led_switch "wan" "WAN" "d-link:green:planet" "switch0" "0x20"
129         ;;
130
131 dir-505-a1)
132         ucidef_set_led_netdev "lan" "LAN" "d-link:green:power" "eth1"
133         ;;
134
135 dir-600-a1|\
136 dir-615-e1|\
137 dir-615-e4)
138         ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
139         ucidef_set_led_switch "lan1" "LAN1" "d-link:green:lan1" "switch0" "0x02"
140         ucidef_set_led_switch "lan2" "LAN2" "d-link:green:lan2" "switch0" "0x04"
141         ucidef_set_led_switch "lan3" "LAN3" "d-link:green:lan3" "switch0" "0x08"
142         ucidef_set_led_switch "lan4" "LAN4" "d-link:green:lan4" "switch0" "0x10"
143         ;;
144
145 dir-615-c1)
146         ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
147         ucidef_set_led_wlan "wlan" "WLAN" "d-link:green:wlan" "phy0tpt"
148         ;;
149
150 dir-825-b1)
151         ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1"
152         ;;
153
154 dir-825-c1)
155         ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1"
156         ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:blue:wlan2g" "phy0tpt"
157         ;;
158
159 dlan-pro-500-wp)
160         ucidef_set_led_default "power" "System Power" "devolo:green:status" "1"
161         ucidef_set_led_netdev "lan" "Ethernet Activity" "devolo:green:eth" "br-lan"
162         ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "devolo:green:wlan-2g" "phy0tpt"
163         ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "devolo:blue:wlan-5g" "none"
164         ;;
165
166 dlan-pro-1200-ac)
167         ucidef_set_led_wlan "wlan" "WLAN" "devolo:status:wlan" "phy0radio"
168         ucidef_set_led_trigger_gpio "plcw" "dLAN" "devolo:status:dlan" "17" "0"
169         ucidef_set_led_trigger_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0"
170         ;;
171
172 gl-inet)
173         ucidef_set_led_netdev "lan" "LAN" "gl-connect:green:lan" "eth1"
174         ucidef_set_led_wlan "wlan" "WLAN" "gl-connect:red:wlan" "phy0tpt"
175         ;;
176
177 esr900)
178         ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "engenius:blue:wlan-2g" "phy0tpt"
179         ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "engenius:blue:wlan-5g" "phy1tpt"
180         ;;
181
182 esr1750)
183         ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "esr1750:blue:wlan-2g" "phy0tpt"
184         ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "esr1750:blue:wlan-5g" "phy1tpt"
185         ;;
186
187 hiwifi-hc6361)
188         ucidef_set_led_netdev "inet" "INET" "hiwifi:blue:internet" "eth1"
189         ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt"
190         ;;
191
192 hornet-ub | \
193 hornet-ub-x2)
194         ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
195         ucidef_set_led_netdev "wan" "WAN" "alfa:blue:wan" "eth1"
196         ucidef_set_led_wlan "wlan" "WLAN" "alfa:blue:wlan" "phy0tpt"
197         ucidef_set_led_usbdev "usb" "USB" "alfa:blue:usb" "1-1"
198         ;;
199
200 mc-mac1200r)
201         ucidef_set_led_wlan "wlan2g" "WLAN2G" "mercury:green:wlan2g" "phy1tpt"
202         ucidef_set_led_wlan "wlan5g" "WLAN5G" "mercury:green:wlan5g" "phy0tpt"
203         ;;
204
205 mr12)
206         ucidef_set_led_netdev "wan" "WAN" "mr12:green:wan" "eth0"
207         ucidef_set_led_wlan "wlan1" "WLAN1" "mr12:green:wifi1" "phy0assoc"
208         ucidef_set_led_wlan "wlan2" "WLAN2" "mr12:green:wifi2" "phy0assoc"
209         ucidef_set_led_wlan "wlan3" "WLAN3" "mr12:green:wifi3" "phy0assoc"
210         ucidef_set_led_wlan "wlan4" "WLAN4" "mr12:green:wifi4" "phy0tpt"
211         ;;
212
213 mr16)
214         ucidef_set_led_netdev "wan" "WAN" "mr16:green:wan" "eth0"
215         ucidef_set_led_wlan "wlan1" "WLAN1" "mr16:green:wifi1" "phy0assoc"
216         ucidef_set_led_wlan "wlan2" "WLAN2" "mr16:green:wifi2" "phy0assoc"
217         ucidef_set_led_wlan "wlan3" "WLAN3" "mr16:green:wifi3" "phy0assoc"
218         ucidef_set_led_wlan "wlan4" "WLAN4" "mr16:green:wifi4" "phy0tpt"
219         ;;
220
221 mr600)
222         ucidef_set_led_wlan "wlan58" "WLAN58" "mr600:green:wlan58" "phy0tpt"
223         ;;
224
225 mr900 | \
226 mr900v2)
227         ucidef_set_led_netdev "lan" "LAN" "mr900:blue:wan" "eth0"
228         ucidef_set_led_wlan "wlan24" "WLAN24" "mr900:blue:wlan24" "phy0tpt"
229         ucidef_set_led_wlan "wlan58" "WLAN58" "mr900:blue:wlan58" "phy1tpt"
230         ;;
231
232 mynet-n600)
233         ucidef_set_led_netdev "wan" "WAN" "wd:blue:internet" "eth1"
234         ucidef_set_led_switch "lan1" "LAN1" "wd:green:lan1" "switch0" "0x02"
235         ucidef_set_led_switch "lan2" "LAN2" "wd:green:lan2" "switch0" "0x10"
236         ucidef_set_led_switch "lan3" "LAN3" "wd:green:lan3" "switch0" "0x08"
237         ucidef_set_led_switch "lan4" "LAN4" "wd:green:lan4" "switch0" "0x04"
238         ;;
239
240 mynet-rext)
241         ucidef_set_led_netdev "lan" "LAN" "wd:blue:ethernet" "eth0"
242         ucidef_set_rssimon "wlan0" "40000" "1"
243         ucidef_set_led_rssi "rssilow" "RSSILOW" "wd:blue:quality1" "wlan0" "1" "40" "0" "6"
244         ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "wd:blue:quality2" "wlan0" "30" "80" "-29" "5"
245         ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "wd:blue:quality3" "wlan0" "70" "100" "-69" "8"
246         ucidef_set_led_wlan "wlan" "WLAN" "wd:blue:wireless" "phy0tpt"
247         ;;
248
249 mzk-w04u)
250         ucidef_set_led_usbdev "usb" "USB" "planex:green:usb" "1-1"
251         ;;
252
253 mzk-w300nh)
254         ucidef_set_led_wlan "wlan" "WLAN" "planex:green:wlan" "phy0tpt"
255         ;;
256
257 nbg460n_550n_550nh)
258         ucidef_set_led_wlan "wlan" "WLAN" "nbg460n:green:wlan" "phy0tpt"
259         ;;
260
261 nbg6716)
262         ucidef_set_led_netdev "wan" "WAN" "zyxel:white:internet" "eth1"
263         ucidef_set_led_wlan "wlan" "WLAN" "zyxel:white:wifi2g" "phy1tpt"
264         ucidef_set_led_wlan "wlan5" "WLAN5" "zyxel:white:wifi5g" "phy0tpt"
265         ucidef_set_led_usbdev "usb1" "USB1" "zyxel:white:usb1" "2-1"
266         ucidef_set_led_usbdev "usb2" "USB2" "zyxel:white:usb2" "1-1"
267         ;;
268
269 om2p | \
270 om2pv2 | \
271 om2p-hs | \
272 om2p-hsv2 | \
273 om2p-lc)
274         ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
275         ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
276         ;;
277
278 om5p | \
279 om5p-an)
280         ucidef_set_led_netdev "port1" "port1" "om5p:blue:wan" "eth0"
281         ucidef_set_led_netdev "port2" "port2" "om5p:blue:lan" "eth1"
282         ;;
283
284 qihoo-c301)
285         ucidef_set_led_wlan "wlan2g" "WLAN2G" "qihoo:red:status" "phy1tpt"
286         ;;
287
288 smart-300)
289         ucidef_set_led_netdev "wan" "WAN" "nc-link:green:wan" "eth0"
290         ucidef_set_led_switch "lan1" "LAN1" "nc-link:green:lan1" "switch0" "0x04"
291         ucidef_set_led_switch "lan2" "LAN2" "nc-link:green:lan2" "switch0" "0x08"
292         ucidef_set_led_switch "lan3" "LAN3" "nc-link:green:lan3" "switch0" "0x10"
293         ucidef_set_led_switch "lan4" "LAN4" "nc-link:green:lan4" "switch0" "0x02"
294         ucidef_set_led_wlan "wlan" "WLAN" "nc-link:green:wlan" "phy0tpt"
295         ;;
296
297 tew-712br)
298         ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
299         ucidef_set_led_switch "lan1" "LAN1" "trendnet:green:lan1" "switch0" "0x02"
300         ucidef_set_led_switch "lan2" "LAN2" "trendnet:green:lan2" "switch0" "0x04"
301         ucidef_set_led_switch "lan3" "LAN3" "trendnet:green:lan3" "switch0" "0x08"
302         ucidef_set_led_switch "lan4" "LAN4" "trendnet:green:lan4" "switch0" "0x10"
303         ucidef_set_led_wlan "wlan" "WLAN" "trendnet:green:wlan" "phy0tpt"
304         ;;
305
306 tew-732br)
307         ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
308         ;;
309
310 tl-mr11u | \
311 tl-mr3020 | \
312 tl-mr3040 | \
313 tl-mr3040-v2)
314         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
315         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
316         ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan"  "eth0"
317         ;;
318
319 tl-mr3220 | \
320 tl-mr3420 )
321         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
322         ;;
323
324 tl-mr3220-v2)
325         ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
326         ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
327         ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
328         ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
329         ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
330         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
331         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
332         ;;
333
334 tl-mr3420-v2)
335         ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
336         ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
337         ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
338         ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
339         ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
340         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
341         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
342         ;;
343
344 tl-wa7210n-v2)
345         ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
346         ucidef_set_rssimon "wlan0" "40000" "1"
347         ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:signal1" "wlan0" "1" "100" "0" "13"
348         ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:signal2" "wlan0" "26" "100" "-25" "13"
349         ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:signal3" "wlan0" "51" "100" "-50" "13"
350         ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:signal4" "wlan0" "76" "100" "-75" "13"
351         ;;
352
353 tl-wa750re)
354         ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
355         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "phy0tpt"
356         ucidef_set_rssimon "wlan0" "40000" "1"
357         ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:orange:signal1" "wlan0" "1" "100" "0" "13"
358         ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:orange:signal2" "wlan0" "20" "100" "-19" "13"
359         ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:orange:signal3" "wlan0" "40" "100" "-39" "13"
360         ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:orange:signal4" "wlan0" "60" "100" "-59" "13"
361         ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:orange:signal5" "wlan0" "80" "100" "-79" "13"
362         ;;
363
364 tl-wa850re)
365         ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
366         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
367         ucidef_set_rssimon "wlan0" "40000" "1"
368         ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:blue:signal1" "wlan0" "1" "100" "0" "13"
369         ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:blue:signal2" "wlan0" "20" "100" "-19" "13"
370         ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:blue:signal3" "wlan0" "40" "100" "-39" "13"
371         ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:blue:signal4" "wlan0" "60" "100" "-59" "13"
372         ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
373         ;;
374
375 tl-wa701nd-v2)
376         ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
377         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
378         ;;
379
380 tl-wa860re)
381         ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
382         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
383         ;;
384
385 tl-wa901nd)
386         ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
387         ;;
388
389 tl-wa901nd-v2)
390         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
391         ;;
392
393 tl-wdr3500)
394         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
395         ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
396         ;;
397
398 tl-wdr4300)
399         ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1.1"
400         ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "1-1.2"
401         ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
402         ;;
403
404 tl-wdr4900-v2)
405         ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
406         ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
407         ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
408         ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy1tpt"
409         ;;
410
411 archer-c5|\
412 archer-c7)
413         ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
414         ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
415         ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy1tpt"
416         ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy0tpt"
417         ;;
418
419 tl-wr741nd)
420         ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
421         ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
422         ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x04"
423         ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
424         ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
425         ;;
426
427 tl-wr741nd-v4)
428         ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
429         ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
430         ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
431         ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
432         ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
433         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
434         ;;
435
436 tl-wr841n-v8 | \
437 tl-wr941nd-v5)
438         ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
439         ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
440         ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
441         ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
442         ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
443         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
444         ;;
445
446 tl-wa830re-v2)
447         ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
448         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
449         ;;
450
451 tl-wr841n-v9)
452         ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
453         ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
454         ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
455         ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
456         ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
457         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
458         ;;
459
460 tl-wr842n-v2)
461         ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
462         ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
463         ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
464         ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
465         ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
466         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
467         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
468         ;;
469
470 tl-wa801nd-v2 | \
471 tl-wa901nd-v3)
472         ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
473         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
474         ;;
475
476 tl-wr941nd | \
477 tl-wr1041n-v2)
478         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
479         ;;
480
481 tl-wr1043nd | \
482 tl-wr1043nd-v2)
483         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
484         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
485         ;;
486
487 tl-wr2543n)
488         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
489         ;;
490
491 tube2h)
492         ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
493         ucidef_set_rssimon "wlan0" "40000" "1"
494         ucidef_set_led_rssi "signal1" "SIGNAL1" "alfa:red:signal1" "wlan0" "1" "100" "0" "13"
495         ucidef_set_led_rssi "signal2" "SIGNAL2" "alfa:orange:signal2" "wlan0" "26" "100" "-25" "13"
496         ucidef_set_led_rssi "signal3" "SIGNAL3" "alfa:green:signal3" "wlan0" "51" "100" "-50" "13"
497         ucidef_set_led_rssi "signal4" "SIGNAL4" "alfa:green:signal4" "wlan0" "76" "100" "-75" "13"
498         ;;
499
500 wrt160nl)
501         ucidef_set_led_wlan "wlan" "WLAN" "wrt160nl:blue:wlan" "phy0tpt"
502         ;;
503
504 wndap360)
505         ucidef_set_led_power "power" "POWER GREEN" "netgear:green:power" "1"
506         ;;
507
508 wndr3700)
509         ucidef_set_led_default "wan" "WAN LED (green)" "netgear:green:wan" "0"
510         ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
511         ;;
512
513 r6100)
514         ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0"
515         ucidef_set_led_usbdev "usb" "USB" "netgear:blue:usb" "1-1"
516         ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy1tpt"
517         ;;
518
519 wndr3700v4 | \
520 wndr4300)
521         ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0.2"
522         ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
523         ucidef_set_led_wlan "wlan2g" "WLAN2G" "netgear:green:wlan2g" "phy0tpt"
524         ucidef_set_led_wlan "wlan5g" "WLAN5G" "netgear:blue:wlan5g" "phy1tpt"
525         ;;
526
527 whr-g301n |\
528 whr-hp-g300n |\
529 whr-hp-gn)
530         ucidef_set_led_netdev "wan" "WAN" "buffalo:green:wan" "eth1"
531         ucidef_set_led_switch "lan1" "LAN1" "buffalo:green:lan1" "switch0" "0x02"
532         ucidef_set_led_switch "lan2" "LAN2" "buffalo:green:lan2" "switch0" "0x04"
533         ucidef_set_led_switch "lan3" "LAN3" "buffalo:green:lan3" "switch0" "0x08"
534         ucidef_set_led_switch "lan4" "LAN4" "buffalo:green:lan4" "switch0" "0x10"
535         ;;
536
537 wlae-ag300n)
538         ucidef_set_led_netdev "wireless" "WIRELESS" "buffalo:green:wireless" "wlan0"
539         ;;
540
541 wnr2000-v4)
542         ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
543         ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
544         ucidef_set_led_switch "lan1" "LAN1" "netgear:amber:lan1" "switch0" "0x02"
545         ucidef_set_led_switch "lan2" "LAN2" "netgear:amber:lan2" "switch0" "0x04"
546         ucidef_set_led_switch "lan3" "LAN3" "netgear:amber:lan3" "switch0" "0x08"
547         ucidef_set_led_switch "lan4" "LAN4" "netgear:amber:lan4" "switch0" "0x10"
548         ucidef_set_led_usbdev "usb" "USB" "netgear:amber:status" "1-1"
549     ;;
550
551 wzr-hp-ag300h)
552         ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
553         ucidef_set_led_netdev "router" "ROUTER" "buffalo:green:router" "eth1"
554         ucidef_set_led_usbdev "usb" "USB" "buffalo:green:usb" "1-1"
555         ;;
556
557 wzr-hp-g300nh)
558         ucidef_set_led_wlan "wlan" "Wireless" "buffalo:green:wireless" "phy0tpt"
559         ucidef_set_led_netdev "router" "Router" "buffalo:green:router" "eth1"
560         ucidef_set_led_usbdev "usb" "USB" "buffalo:blue:usb" "1-1"
561         ;;
562
563 zcn-1523h-2)
564         ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
565         ;;
566
567 zcn-1523h-5)
568         ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
569         ucidef_set_led_netdev "lan2" "lan2" "zcn-1523h:green:lan2" "eth1"
570         ;;
571 esac
572
573 ucidef_commit_leds
574
575 exit 0