CC: ar71xx: add LED defaults for the EnGenius EPG5000
[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 epg5000)
188         ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "epg5000:blue:wlan-2g" "phy1tpt"
189         ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "epg5000:blue:wlan-5g" "phy0tpt"
190         ;;
191
192 hiwifi-hc6361)
193         ucidef_set_led_netdev "inet" "INET" "hiwifi:blue:internet" "eth1"
194         ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt"
195         ;;
196
197 hornet-ub | \
198 hornet-ub-x2)
199         ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
200         ucidef_set_led_netdev "wan" "WAN" "alfa:blue:wan" "eth1"
201         ucidef_set_led_wlan "wlan" "WLAN" "alfa:blue:wlan" "phy0tpt"
202         ucidef_set_led_usbdev "usb" "USB" "alfa:blue:usb" "1-1"
203         ;;
204
205 mc-mac1200r)
206         ucidef_set_led_wlan "wlan2g" "WLAN2G" "mercury:green:wlan2g" "phy1tpt"
207         ucidef_set_led_wlan "wlan5g" "WLAN5G" "mercury:green:wlan5g" "phy0tpt"
208         ;;
209
210 mr12)
211         ucidef_set_led_netdev "wan" "WAN" "mr12:green:wan" "eth0"
212         ucidef_set_led_wlan "wlan1" "WLAN1" "mr12:green:wifi1" "phy0assoc"
213         ucidef_set_led_wlan "wlan2" "WLAN2" "mr12:green:wifi2" "phy0assoc"
214         ucidef_set_led_wlan "wlan3" "WLAN3" "mr12:green:wifi3" "phy0assoc"
215         ucidef_set_led_wlan "wlan4" "WLAN4" "mr12:green:wifi4" "phy0tpt"
216         ;;
217
218 mr16)
219         ucidef_set_led_netdev "wan" "WAN" "mr16:green:wan" "eth0"
220         ucidef_set_led_wlan "wlan1" "WLAN1" "mr16:green:wifi1" "phy0assoc"
221         ucidef_set_led_wlan "wlan2" "WLAN2" "mr16:green:wifi2" "phy0assoc"
222         ucidef_set_led_wlan "wlan3" "WLAN3" "mr16:green:wifi3" "phy0assoc"
223         ucidef_set_led_wlan "wlan4" "WLAN4" "mr16:green:wifi4" "phy0tpt"
224         ;;
225
226 mr600)
227         ucidef_set_led_wlan "wlan58" "WLAN58" "mr600:green:wlan58" "phy0tpt"
228         ;;
229
230 mr900 | \
231 mr900v2)
232         ucidef_set_led_netdev "lan" "LAN" "mr900:blue:wan" "eth0"
233         ucidef_set_led_wlan "wlan24" "WLAN24" "mr900:blue:wlan24" "phy0tpt"
234         ucidef_set_led_wlan "wlan58" "WLAN58" "mr900:blue:wlan58" "phy1tpt"
235         ;;
236
237 mynet-n600)
238         ucidef_set_led_netdev "wan" "WAN" "wd:blue:internet" "eth1"
239         ucidef_set_led_switch "lan1" "LAN1" "wd:green:lan1" "switch0" "0x02"
240         ucidef_set_led_switch "lan2" "LAN2" "wd:green:lan2" "switch0" "0x10"
241         ucidef_set_led_switch "lan3" "LAN3" "wd:green:lan3" "switch0" "0x08"
242         ucidef_set_led_switch "lan4" "LAN4" "wd:green:lan4" "switch0" "0x04"
243         ;;
244
245 mynet-rext)
246         ucidef_set_led_netdev "lan" "LAN" "wd:blue:ethernet" "eth0"
247         ucidef_set_rssimon "wlan0" "40000" "1"
248         ucidef_set_led_rssi "rssilow" "RSSILOW" "wd:blue:quality1" "wlan0" "1" "40" "0" "6"
249         ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "wd:blue:quality2" "wlan0" "30" "80" "-29" "5"
250         ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "wd:blue:quality3" "wlan0" "70" "100" "-69" "8"
251         ucidef_set_led_wlan "wlan" "WLAN" "wd:blue:wireless" "phy0tpt"
252         ;;
253
254 mzk-w04u)
255         ucidef_set_led_usbdev "usb" "USB" "planex:green:usb" "1-1"
256         ;;
257
258 mzk-w300nh)
259         ucidef_set_led_wlan "wlan" "WLAN" "planex:green:wlan" "phy0tpt"
260         ;;
261
262 nbg460n_550n_550nh)
263         ucidef_set_led_wlan "wlan" "WLAN" "nbg460n:green:wlan" "phy0tpt"
264         ;;
265
266 nbg6716)
267         ucidef_set_led_netdev "wan" "WAN" "zyxel:white:internet" "eth1"
268         ucidef_set_led_wlan "wlan" "WLAN" "zyxel:white:wifi2g" "phy1tpt"
269         ucidef_set_led_wlan "wlan5" "WLAN5" "zyxel:white:wifi5g" "phy0tpt"
270         ucidef_set_led_usbdev "usb1" "USB1" "zyxel:white:usb1" "2-1"
271         ucidef_set_led_usbdev "usb2" "USB2" "zyxel:white:usb2" "1-1"
272         ;;
273
274 om2p | \
275 om2pv2 | \
276 om2p-hs | \
277 om2p-hsv2 | \
278 om2p-lc)
279         ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
280         ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
281         ;;
282
283 om5p | \
284 om5p-an)
285         ucidef_set_led_netdev "port1" "port1" "om5p:blue:wan" "eth0"
286         ucidef_set_led_netdev "port2" "port2" "om5p:blue:lan" "eth1"
287         ;;
288
289 qihoo-c301)
290         ucidef_set_led_wlan "wlan2g" "WLAN2G" "qihoo:red:status" "phy1tpt"
291         ;;
292
293 smart-300)
294         ucidef_set_led_netdev "wan" "WAN" "nc-link:green:wan" "eth0"
295         ucidef_set_led_switch "lan1" "LAN1" "nc-link:green:lan1" "switch0" "0x04"
296         ucidef_set_led_switch "lan2" "LAN2" "nc-link:green:lan2" "switch0" "0x08"
297         ucidef_set_led_switch "lan3" "LAN3" "nc-link:green:lan3" "switch0" "0x10"
298         ucidef_set_led_switch "lan4" "LAN4" "nc-link:green:lan4" "switch0" "0x02"
299         ucidef_set_led_wlan "wlan" "WLAN" "nc-link:green:wlan" "phy0tpt"
300         ;;
301
302 tew-712br)
303         ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
304         ucidef_set_led_switch "lan1" "LAN1" "trendnet:green:lan1" "switch0" "0x02"
305         ucidef_set_led_switch "lan2" "LAN2" "trendnet:green:lan2" "switch0" "0x04"
306         ucidef_set_led_switch "lan3" "LAN3" "trendnet:green:lan3" "switch0" "0x08"
307         ucidef_set_led_switch "lan4" "LAN4" "trendnet:green:lan4" "switch0" "0x10"
308         ucidef_set_led_wlan "wlan" "WLAN" "trendnet:green:wlan" "phy0tpt"
309         ;;
310
311 tew-732br)
312         ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
313         ;;
314
315 tl-mr11u | \
316 tl-mr3020 | \
317 tl-mr3040 | \
318 tl-mr3040-v2)
319         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
320         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
321         ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan"  "eth0"
322         ;;
323
324 tl-mr3220 | \
325 tl-mr3420 )
326         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
327         ;;
328
329 tl-mr3220-v2)
330         ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
331         ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
332         ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
333         ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
334         ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
335         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
336         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
337         ;;
338
339 tl-mr3420-v2)
340         ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
341         ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
342         ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
343         ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
344         ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
345         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
346         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
347         ;;
348
349 tl-wa7210n-v2)
350         ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
351         ucidef_set_rssimon "wlan0" "40000" "1"
352         ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:signal1" "wlan0" "1" "100" "0" "13"
353         ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:signal2" "wlan0" "26" "100" "-25" "13"
354         ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:signal3" "wlan0" "51" "100" "-50" "13"
355         ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:signal4" "wlan0" "76" "100" "-75" "13"
356         ;;
357
358 tl-wa750re)
359         ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
360         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "phy0tpt"
361         ucidef_set_rssimon "wlan0" "40000" "1"
362         ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:orange:signal1" "wlan0" "1" "100" "0" "13"
363         ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:orange:signal2" "wlan0" "20" "100" "-19" "13"
364         ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:orange:signal3" "wlan0" "40" "100" "-39" "13"
365         ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:orange:signal4" "wlan0" "60" "100" "-59" "13"
366         ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:orange:signal5" "wlan0" "80" "100" "-79" "13"
367         ;;
368
369 tl-wa850re)
370         ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
371         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
372         ucidef_set_rssimon "wlan0" "40000" "1"
373         ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:blue:signal1" "wlan0" "1" "100" "0" "13"
374         ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:blue:signal2" "wlan0" "20" "100" "-19" "13"
375         ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:blue:signal3" "wlan0" "40" "100" "-39" "13"
376         ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:blue:signal4" "wlan0" "60" "100" "-59" "13"
377         ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
378         ;;
379
380 tl-wa701nd-v2)
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-wa860re)
386         ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
387         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
388         ;;
389
390 tl-wa901nd)
391         ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
392         ;;
393
394 tl-wa901nd-v2)
395         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
396         ;;
397
398 tl-wdr3500)
399         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
400         ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
401         ;;
402
403 tl-wdr4300)
404         ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1.1"
405         ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "1-1.2"
406         ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
407         ;;
408
409 tl-wdr4900-v2)
410         ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
411         ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
412         ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
413         ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy1tpt"
414         ;;
415
416 archer-c5|\
417 archer-c7)
418         ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
419         ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
420         ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy1tpt"
421         ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy0tpt"
422         ;;
423
424 tl-wr741nd)
425         ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
426         ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
427         ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x04"
428         ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
429         ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
430         ;;
431
432 tl-wr741nd-v4)
433         ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
434         ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
435         ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
436         ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
437         ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
438         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
439         ;;
440
441 tl-wr841n-v8 | \
442 tl-wr941nd-v5)
443         ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
444         ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
445         ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
446         ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
447         ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
448         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
449         ;;
450
451 tl-wa830re-v2)
452         ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
453         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
454         ;;
455
456 tl-wr841n-v9)
457         ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
458         ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
459         ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
460         ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
461         ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
462         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
463         ;;
464
465 tl-wr842n-v2)
466         ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
467         ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
468         ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
469         ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
470         ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
471         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
472         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
473         ;;
474
475 tl-wa801nd-v2 | \
476 tl-wa901nd-v3)
477         ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
478         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
479         ;;
480
481 tl-wr941nd | \
482 tl-wr1041n-v2)
483         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
484         ;;
485
486 tl-wr1043nd | \
487 tl-wr1043nd-v2)
488         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
489         ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
490         ;;
491
492 tl-wr2543n)
493         ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
494         ;;
495
496 tube2h)
497         ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
498         ucidef_set_rssimon "wlan0" "40000" "1"
499         ucidef_set_led_rssi "signal1" "SIGNAL1" "alfa:red:signal1" "wlan0" "1" "100" "0" "13"
500         ucidef_set_led_rssi "signal2" "SIGNAL2" "alfa:orange:signal2" "wlan0" "26" "100" "-25" "13"
501         ucidef_set_led_rssi "signal3" "SIGNAL3" "alfa:green:signal3" "wlan0" "51" "100" "-50" "13"
502         ucidef_set_led_rssi "signal4" "SIGNAL4" "alfa:green:signal4" "wlan0" "76" "100" "-75" "13"
503         ;;
504
505 wrt160nl)
506         ucidef_set_led_wlan "wlan" "WLAN" "wrt160nl:blue:wlan" "phy0tpt"
507         ;;
508
509 wndap360)
510         ucidef_set_led_power "power" "POWER GREEN" "netgear:green:power" "1"
511         ;;
512
513 wndr3700)
514         ucidef_set_led_default "wan" "WAN LED (green)" "netgear:green:wan" "0"
515         ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
516         ;;
517
518 r6100)
519         ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0"
520         ucidef_set_led_usbdev "usb" "USB" "netgear:blue:usb" "1-1"
521         ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy1tpt"
522         ;;
523
524 wndr3700v4 | \
525 wndr4300)
526         ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0.2"
527         ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
528         ucidef_set_led_wlan "wlan2g" "WLAN2G" "netgear:green:wlan2g" "phy0tpt"
529         ucidef_set_led_wlan "wlan5g" "WLAN5G" "netgear:blue:wlan5g" "phy1tpt"
530         ;;
531
532 whr-g301n |\
533 whr-hp-g300n |\
534 whr-hp-gn)
535         ucidef_set_led_netdev "wan" "WAN" "buffalo:green:wan" "eth1"
536         ucidef_set_led_switch "lan1" "LAN1" "buffalo:green:lan1" "switch0" "0x02"
537         ucidef_set_led_switch "lan2" "LAN2" "buffalo:green:lan2" "switch0" "0x04"
538         ucidef_set_led_switch "lan3" "LAN3" "buffalo:green:lan3" "switch0" "0x08"
539         ucidef_set_led_switch "lan4" "LAN4" "buffalo:green:lan4" "switch0" "0x10"
540         ;;
541
542 wlae-ag300n)
543         ucidef_set_led_netdev "wireless" "WIRELESS" "buffalo:green:wireless" "wlan0"
544         ;;
545
546 wnr2000-v4)
547         ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
548         ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
549         ucidef_set_led_switch "lan1" "LAN1" "netgear:amber:lan1" "switch0" "0x02"
550         ucidef_set_led_switch "lan2" "LAN2" "netgear:amber:lan2" "switch0" "0x04"
551         ucidef_set_led_switch "lan3" "LAN3" "netgear:amber:lan3" "switch0" "0x08"
552         ucidef_set_led_switch "lan4" "LAN4" "netgear:amber:lan4" "switch0" "0x10"
553         ucidef_set_led_usbdev "usb" "USB" "netgear:amber:status" "1-1"
554     ;;
555
556 wzr-hp-ag300h)
557         ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
558         ucidef_set_led_netdev "router" "ROUTER" "buffalo:green:router" "eth1"
559         ucidef_set_led_usbdev "usb" "USB" "buffalo:green:usb" "1-1"
560         ;;
561
562 wzr-hp-g300nh)
563         ucidef_set_led_wlan "wlan" "Wireless" "buffalo:green:wireless" "phy0tpt"
564         ucidef_set_led_netdev "router" "Router" "buffalo:green:router" "eth1"
565         ucidef_set_led_usbdev "usb" "USB" "buffalo:blue:usb" "1-1"
566         ;;
567
568 zcn-1523h-2)
569         ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
570         ;;
571
572 zcn-1523h-5)
573         ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
574         ucidef_set_led_netdev "lan2" "lan2" "zcn-1523h:green:lan2" "eth1"
575         ;;
576 esac
577
578 ucidef_commit_leds
579
580 exit 0