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