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