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