ar71xx: add support for Netgear WPN824N
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / base-files / etc / board.d / 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_config_update
10
11 board=$(ar71xx_board_name)
12
13 case "$board" in
14 airgateway | \
15 airgatewaypro)
16 ucidef_set_led_wlan "wlan" "WLAN" "ubnt:blue:wlan" "phy0tpt"
17 ;;
18 alfa-nx)
19 ucidef_set_led_netdev "wan" "WAN" "alfa:green:led_2" "eth0"
20 ucidef_set_led_netdev "lan" "LAN" "alfa:green:led_3" "eth1"
21 ;;
22
23 all0258n)
24 ucidef_set_rssimon "wlan0" "40000" "1"
25 ucidef_set_led_rssi "rssilow" "RSSILOW" "all0258n:red:rssilow" "wlan0" "1" "40" "0" "6"
26 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0258n:yellow:rssimedium" "wlan0" "30" "80" "-29" "5"
27 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0258n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
28 ;;
29
30 all0315n)
31 ucidef_set_rssimon "wlan0" "40000" "1"
32 ucidef_set_led_rssi "rssilow" "RSSILOW" "all0315n:red:rssilow" "wlan0" "1" "40" "0" "6"
33 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0315n:yellow:rssimedium" "wlan0" "30" "80" "-29" "5"
34 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0315n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
35 ;;
36
37 antminer-s1)
38 ucidef_set_led_default "sys" "SYS" "antminer-s1:green:sys" "0"
39 ucidef_set_led_wlan "wlan" "WLAN" "antminer-s1:green:wlan" "phy0tpt"
40 ;;
41
42 antminer-s3)
43 ucidef_set_led_wlan "wlan" "WLAN" "antminer-s3:green:wlan" "phy0tpt"
44 ucidef_set_led_default "sys" "SYS" "antminer-s3:green:sys" "0"
45 ucidef_set_led_default "lan" "LAN" "antminer-s3:yellow:lan" "0"
46 ;;
47
48 antrouter-r1)
49 ucidef_set_led_wlan "wlan" "WLAN" "antrouter-r1:green:wlan" "phy0tpt"
50 ucidef_set_led_default "btc" "BTC" "antrouter-r1:green:btc" "0"
51 ;;
52
53 arduino-yun)
54 ucidef_set_led_wlan "wlan" "WLAN" "arduino:blue:wlan" "phy0tpt"
55 ucidef_set_led_usbdev "usb" "USB" "arduino:white:usb" "1-1.1"
56 ;;
57
58 ap113)
59 ucidef_set_led_usbdev "usb" "USB" "ap113:green:usb" "1-1"
60 ;;
61
62 ap147-010)
63 ucidef_set_led_netdev "wan" "WAN" "ap147:green:wan" "eth1"
64 ucidef_set_led_switch "lan1" "LAN1" "ap147:green:lan1" "switch0" "0x10"
65 ucidef_set_led_switch "lan2" "LAN2" "ap147:green:lan2" "switch0" "0x08"
66 ucidef_set_led_switch "lan3" "LAN3" "ap147:green:lan3" "switch0" "0x04"
67 ucidef_set_led_switch "lan4" "LAN4" "ap147:green:lan4" "switch0" "0x02"
68 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "ap147:green:wlan-2g" "phy0tpt"
69 ;;
70
71 bsb)
72 ucidef_set_led_default "sys" "SYS" "bsb:red:sys" "1"
73 ;;
74
75 bullet-m | \
76 nanostation-m | \
77 rocket-m | \
78 rocket-m-xw | \
79 nanostation-m-xw | \
80 loco-m-xw)
81 ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100" "0" "13"
82 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:orange:link2" "wlan0" "26" "100" "-25" "13"
83 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
84 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
85 ;;
86
87 rocket-m-ti)
88 ucidef_set_led_rssi "rssiverylow" "RSSIVERYLOW" "ubnt:green:link1" "wlan0" "1" "100" "0" "13"
89 ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:green:link2" "wlan0" "26" "100" "-25" "13"
90 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
91 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
92 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link5" "wlan0" "76" "100" "-75" "13"
93 ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
94 ;;
95
96 bxu2000n-2-a1)
97 ucidef_set_led_wlan "wlan" "WLAN" "bhu:green:wlan" "phy0tpt"
98 ;;
99
100 cap324)
101 ucidef_set_led_netdev "lan" "LAN" "pcs:green:lan" "eth0"
102 ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "pcs:amber:wlan" "phy0tpt"
103 ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "pcs:green:wlan" "phy1tpt"
104 ;;
105
106 c-55)
107 ucidef_set_led_netdev "lan_green" "LAN_GREEN" "c-55:green:lan" "eth0"
108 ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "c-55:amber:wlan" "phy0tpt"
109 ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "c-55:green:wlan" "phy1tpt"
110 ;;
111
112 cap4200ag)
113 ucidef_set_led_default "lan_green" "LAN_GREEN" "senao:green:lan" "1"
114 ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "senao:amber:wlan" "phy0tpt"
115 ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "senao:green:wlan" "phy1tpt"
116 ;;
117
118 carambola2)
119 ucidef_set_led_netdev "lan" "LAN" "carambola2:orange:eth0" "eth0"
120 ucidef_set_led_netdev "wan" "WAN" "carambola2:orange:eth1" "eth1"
121 ucidef_set_led_wlan "wlan" "WLAN" "carambola2:green:wlan" "phy0tpt"
122 ;;
123
124 cf-e316n-v2)
125 ucidef_set_led_netdev "lan" "LAN" "$board:blue:lan" "eth0"
126 ucidef_set_led_netdev "wan" "WAN" "$board:blue:wan" "eth1"
127 ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
128 ;;
129
130 cpe510)
131 ucidef_set_led_switch "lan0" "LAN0" "tp-link:green:lan0" "switch0" "0x20"
132 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
133 ucidef_set_rssimon "wlan0" "40000" "1"
134 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:link1" "wlan0" "1" "100" "0" "13"
135 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:link2" "wlan0" "26" "100" "-25" "13"
136 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "51" "100" "-50" "13"
137 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "76" "100" "-75" "13"
138 ;;
139
140 cr3000)
141 ucidef_set_led_netdev "wan" "WAN" "pcs:blue:wan" "eth1"
142 ucidef_set_led_switch "lan1" "LAN1" "pcs:blue:lan1" "switch0" "0x04"
143 ucidef_set_led_switch "lan2" "LAN2" "pcs:blue:lan2" "switch0" "0x08"
144 ucidef_set_led_switch "lan3" "LAN3" "pcs:blue:lan3" "switch0" "0x10"
145 ucidef_set_led_switch "lan4" "LAN4" "pcs:blue:lan4" "switch0" "0x02"
146 ucidef_set_led_wlan "wlan" "WLAN" "pcs:blue:wlan" "phy0tpt"
147 ;;
148
149 cr5000)
150 ucidef_set_led_wlan "wlan" "WLAN" "pcs:blue:wlan" "phy0tpt"
151 ucidef_set_led_usbdev "usb" "USB" "pcs:white:wps" "1-1"
152 ;;
153
154 db120)
155 ucidef_set_led_usbdev "usb" "USB" "db120:green:usb" "1-1"
156 ;;
157
158 dragino2)
159 ucidef_set_led_wlan "wlan" "WLAN" "dragino2:red:wlan" "phy0tpt"
160 ucidef_set_led_netdev "lan" "LAN" "dragino2:red:lan" "eth0"
161 ucidef_set_led_netdev "wan" "WAN" "dragino2:red:wan" "eth1"
162 ;;
163
164 eap300v2)
165 ucidef_set_led_netdev "lan" "LAN" "engenius:blue:lan" "eth0"
166 ucidef_set_led_wlan "wlan" "WLAN" "engenius:blue:wlan" "phy0tpt"
167 ;;
168
169 f9k1115v2)
170 ucidef_set_led_usbdev "usb2" "USB2" "belkin:green:usb2" "1-1"
171 ;;
172
173 rb-750)
174 ucidef_set_led_default "act" "act" "rb750:green:act" "1"
175 ucidef_set_led_netdev "port1" "port1" "rb750:green:port1" "eth1"
176 ucidef_set_led_switch "port2" "port2" "rb750:green:port2" "switch0" "0x10"
177 ucidef_set_led_switch "port3" "port3" "rb750:green:port3" "switch0" "0x08"
178 ucidef_set_led_switch "port4" "port4" "rb750:green:port4" "switch0" "0x04"
179 ucidef_set_led_switch "port5" "port5" "rb750:green:port5" "switch0" "0x02"
180 ;;
181
182 rb-2011l|\
183 rb-2011uas|\
184 rb-2011uias|\
185 rb-2011uas-2hnd|\
186 rb-2011uias-2hnd)
187 ucidef_set_led_switch "eth6" "ETH6" "rb:green:eth6" "switch1" "0x20"
188 ucidef_set_led_switch "eth7" "ETH7" "rb:green:eth7" "switch1" "0x10"
189 ucidef_set_led_switch "eth8" "ETH8" "rb:green:eth8" "switch1" "0x08"
190 ucidef_set_led_switch "eth9" "ETH9" "rb:green:eth9" "switch1" "0x04"
191 ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
192 ;;
193
194 dhp-1565-a1)
195 ucidef_set_led_switch "wan" "WAN" "d-link:green:planet" "switch0" "0x20"
196 ;;
197
198 dir-505-a1)
199 ucidef_set_led_netdev "lan" "LAN" "d-link:green:power" "eth1"
200 ;;
201
202 dir-600-a1|\
203 dir-615-e1|\
204 dir-615-e4)
205 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
206 ucidef_set_led_switch "lan1" "LAN1" "d-link:green:lan1" "switch0" "0x02"
207 ucidef_set_led_switch "lan2" "LAN2" "d-link:green:lan2" "switch0" "0x04"
208 ucidef_set_led_switch "lan3" "LAN3" "d-link:green:lan3" "switch0" "0x08"
209 ucidef_set_led_switch "lan4" "LAN4" "d-link:green:lan4" "switch0" "0x10"
210 ;;
211
212 dir-615-c1)
213 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
214 ucidef_set_led_wlan "wlan" "WLAN" "d-link:green:wlan" "phy0tpt"
215 ;;
216
217 dir-825-b1)
218 ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1"
219 ;;
220
221 dir-615-i1)
222 ucidef_set_led_default "power" "POWER" "d-link:green:power" "1"
223 ucidef_set_led_default "diag" "DIAG" "d-link:amber:power" "0"
224 ucidef_set_led_default "wps" "WPS" "d-link:blue:wps" "0"
225 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth0"
226 ucidef_set_led_wlan "wlan" "WLAN" "d-link:green:wlan" "phy0tpt"
227 ;;
228
229 dir-825-c1)
230 ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1"
231 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:blue:wlan2g" "phy0tpt"
232 ;;
233
234 dlan-hotspot)
235 ucidef_set_led_wlan "wlan" "WLAN" "devolo:green:wifi" "phy0tpt"
236 ;;
237
238 dlan-pro-500-wp)
239 ucidef_set_led_default "power" "System Power" "devolo:green:status" "1"
240 ucidef_set_led_netdev "lan" "Ethernet Activity" "devolo:green:eth" "br-lan"
241 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "devolo:green:wlan-2g" "phy0tpt"
242 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "devolo:blue:wlan-5g" "none"
243 ;;
244
245 dlan-pro-1200-ac)
246 ucidef_set_led_wlan "wlan" "WLAN" "devolo:status:wlan" "phy0radio"
247 ucidef_set_led_gpio "plcw" "dLAN" "devolo:status:dlan" "17" "0"
248 ucidef_set_led_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0"
249 ;;
250
251 gl-ar150)
252 ucidef_set_led_wlan "wlan" "WLAN" "gl_ar150:wlan" "phy0tpt"
253 ;;
254
255 gl-ar300)
256 ucidef_set_led_wlan "wlan" "WLAN" "gl_ar300:wlan" "phy0tpt"
257 ;;
258
259 gl-domino)
260 ucidef_set_led_wlan "wlan" "WLAN" "domino:blue:wlan" "phy0tpt"
261 ;;
262
263 gl-inet)
264 ucidef_set_led_netdev "lan" "LAN" "gl-connect:green:lan" "eth1"
265 ucidef_set_led_wlan "wlan" "WLAN" "gl-connect:red:wlan" "phy0tpt"
266 ;;
267
268 esr900)
269 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "engenius:blue:wlan-2g" "phy0tpt"
270 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "engenius:blue:wlan-5g" "phy1tpt"
271 ;;
272
273 esr1750)
274 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "esr1750:blue:wlan-2g" "phy1tpt"
275 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "esr1750:blue:wlan-5g" "phy0tpt"
276 ;;
277
278 epg5000)
279 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "epg5000:blue:wlan-2g" "phy1tpt"
280 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "epg5000:blue:wlan-5g" "phy0tpt"
281 ;;
282
283 hiwifi-hc6361)
284 ucidef_set_led_netdev "inet" "INET" "hiwifi:blue:internet" "eth1"
285 ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt"
286 ;;
287
288 hornet-ub | \
289 hornet-ub-x2)
290 ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
291 ucidef_set_led_netdev "wan" "WAN" "alfa:blue:wan" "eth1"
292 ucidef_set_led_wlan "wlan" "WLAN" "alfa:blue:wlan" "phy0tpt"
293 ucidef_set_led_usbdev "usb" "USB" "alfa:blue:usb" "1-1"
294 ;;
295
296 mc-mac1200r)
297 ucidef_set_led_wlan "wlan2g" "WLAN2G" "mercury:green:wlan2g" "phy1tpt"
298 ucidef_set_led_wlan "wlan5g" "WLAN5G" "mercury:green:wlan5g" "phy0tpt"
299 ;;
300
301 mr12)
302 ucidef_set_led_netdev "wan" "WAN" "mr12:green:wan" "eth0"
303 ucidef_set_led_wlan "wlan1" "WLAN1" "mr12:green:wifi1" "phy0assoc"
304 ucidef_set_led_wlan "wlan2" "WLAN2" "mr12:green:wifi2" "phy0assoc"
305 ucidef_set_led_wlan "wlan3" "WLAN3" "mr12:green:wifi3" "phy0assoc"
306 ucidef_set_led_wlan "wlan4" "WLAN4" "mr12:green:wifi4" "phy0tpt"
307 ;;
308
309 mr16)
310 ucidef_set_led_netdev "wan" "WAN" "mr16:green:wan" "eth0"
311 ucidef_set_led_wlan "wlan1" "WLAN1" "mr16:green:wifi1" "phy0assoc"
312 ucidef_set_led_wlan "wlan2" "WLAN2" "mr16:green:wifi2" "phy0assoc"
313 ucidef_set_led_wlan "wlan3" "WLAN3" "mr16:green:wifi3" "phy0assoc"
314 ucidef_set_led_wlan "wlan4" "WLAN4" "mr16:green:wifi4" "phy0tpt"
315 ;;
316
317 mr18)
318 ucidef_set_led_netdev "wlan0" "WLAN0" "mr18:blue:tricolor0" "wlan0"
319 ;;
320
321 mr600)
322 ucidef_set_led_wlan "wlan58" "WLAN58" "mr600:green:wlan58" "phy0tpt"
323 ;;
324
325 mr1750)
326 ucidef_set_led_netdev "lan" "LAN" "mr1750:blue:wan" "eth0"
327 ucidef_set_led_wlan "wlan58" "WLAN58" "mr1750:blue:wlan58" "phy0tpt"
328 ucidef_set_led_wlan "wlan24" "WLAN24" "mr1750:blue:wlan24" "phy1tpt"
329 ;;
330
331 mr900 | \
332 mr900v2)
333 ucidef_set_led_netdev "lan" "LAN" "mr900:blue:wan" "eth0"
334 ucidef_set_led_wlan "wlan24" "WLAN24" "mr900:blue:wlan24" "phy0tpt"
335 ucidef_set_led_wlan "wlan58" "WLAN58" "mr900:blue:wlan58" "phy1tpt"
336 ;;
337
338 mynet-n600)
339 ucidef_set_led_netdev "wan" "WAN" "wd:blue:internet" "eth1"
340 ucidef_set_led_switch "lan1" "LAN1" "wd:green:lan1" "switch0" "0x02"
341 ucidef_set_led_switch "lan2" "LAN2" "wd:green:lan2" "switch0" "0x10"
342 ucidef_set_led_switch "lan3" "LAN3" "wd:green:lan3" "switch0" "0x08"
343 ucidef_set_led_switch "lan4" "LAN4" "wd:green:lan4" "switch0" "0x04"
344 ;;
345
346 mynet-rext)
347 ucidef_set_led_netdev "lan" "LAN" "wd:blue:ethernet" "eth0"
348 ucidef_set_rssimon "wlan0" "40000" "1"
349 ucidef_set_led_rssi "rssilow" "RSSILOW" "wd:blue:quality1" "wlan0" "1" "40" "0" "6"
350 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "wd:blue:quality2" "wlan0" "30" "80" "-29" "5"
351 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "wd:blue:quality3" "wlan0" "70" "100" "-69" "8"
352 ucidef_set_led_wlan "wlan" "WLAN" "wd:blue:wireless" "phy0tpt"
353 ;;
354
355 mzk-w04u)
356 ucidef_set_led_usbdev "usb" "USB" "planex:green:usb" "1-1"
357 ;;
358
359 mzk-w300nh)
360 ucidef_set_led_wlan "wlan" "WLAN" "planex:green:wlan" "phy0tpt"
361 ;;
362
363 nbg460n_550n_550nh)
364 ucidef_set_led_wlan "wlan" "WLAN" "nbg460n:green:wlan" "phy0tpt"
365 ;;
366
367 nbg6616)
368 ucidef_set_led_wlan "wlan" "WLAN" "nbg6616:green:wifi2g" "phy1tpt"
369 ucidef_set_led_wlan "wlan5" "WLAN5" "nbg6616:green:wifi5g" "phy0tpt"
370 ucidef_set_led_usbdev "usb1" "USB1" "nbg6616:green:usb1" "1-1"
371 ucidef_set_led_usbdev "usb2" "USB2" "nbg6616:green:usb2" "2-1"
372 ;;
373
374 nbg6716)
375 ucidef_set_led_netdev "wan" "WAN" "nbg6716:white:internet" "eth1"
376 ucidef_set_led_wlan "wlan" "WLAN" "nbg6716:white:wifi2g" "phy1tpt"
377 ucidef_set_led_wlan "wlan5" "WLAN5" "nbg6716:white:wifi5g" "phy0tpt"
378 ucidef_set_led_usbdev "usb1" "USB1" "nbg6716:white:usb1" "1-1"
379 ucidef_set_led_usbdev "usb2" "USB2" "nbg6716:white:usb2" "2-1"
380 ;;
381
382 om2p | \
383 om2pv2 | \
384 om2p-hs | \
385 om2p-hsv2 | \
386 om2p-lc)
387 ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
388 ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
389 ;;
390
391 om5p | \
392 om5p-an)
393 ucidef_set_led_netdev "port1" "port1" "om5p:blue:wan" "eth0"
394 ucidef_set_led_netdev "port2" "port2" "om5p:blue:lan" "eth1"
395 ;;
396
397 qihoo-c301)
398 ucidef_set_led_wlan "wlan2g" "WLAN2G" "qihoo:red:status" "phy1tpt"
399 ;;
400
401 smart-300)
402 ucidef_set_led_netdev "wan" "WAN" "nc-link:green:wan" "eth0"
403 ucidef_set_led_switch "lan1" "LAN1" "nc-link:green:lan1" "switch0" "0x04"
404 ucidef_set_led_switch "lan2" "LAN2" "nc-link:green:lan2" "switch0" "0x08"
405 ucidef_set_led_switch "lan3" "LAN3" "nc-link:green:lan3" "switch0" "0x10"
406 ucidef_set_led_switch "lan4" "LAN4" "nc-link:green:lan4" "switch0" "0x02"
407 ucidef_set_led_wlan "wlan" "WLAN" "nc-link:green:wlan" "phy0tpt"
408 ;;
409
410 tew-712br)
411 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
412 ucidef_set_led_switch "lan1" "LAN1" "trendnet:green:lan1" "switch0" "0x02"
413 ucidef_set_led_switch "lan2" "LAN2" "trendnet:green:lan2" "switch0" "0x04"
414 ucidef_set_led_switch "lan3" "LAN3" "trendnet:green:lan3" "switch0" "0x08"
415 ucidef_set_led_switch "lan4" "LAN4" "trendnet:green:lan4" "switch0" "0x10"
416 ucidef_set_led_wlan "wlan" "WLAN" "trendnet:green:wlan" "phy0tpt"
417 ;;
418
419 tew-732br)
420 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
421 ;;
422
423 tew-823dru)
424 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:planet" "eth0"
425 ;;
426
427 tl-mr11u | \
428 tl-mr3020 | \
429 tl-mr3040 | \
430 tl-mr3040-v2)
431 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
432 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
433 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
434 ;;
435
436 tl-mr3220 | \
437 tl-mr3420 )
438 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
439 ;;
440
441 tl-mr3220-v2)
442 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
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-mr3420-v2)
452 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
453 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
454 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
455 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
456 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
457 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
458 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
459 ;;
460
461 tl-wa7210n-v2)
462 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
463 ucidef_set_rssimon "wlan0" "40000" "1"
464 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:signal1" "wlan0" "1" "100" "0" "13"
465 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:signal2" "wlan0" "26" "100" "-25" "13"
466 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:signal3" "wlan0" "51" "100" "-50" "13"
467 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:signal4" "wlan0" "76" "100" "-75" "13"
468 ;;
469
470 tl-wa750re)
471 ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
472 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "phy0tpt"
473 ucidef_set_rssimon "wlan0" "40000" "1"
474 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:orange:signal1" "wlan0" "1" "100" "0" "13"
475 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:orange:signal2" "wlan0" "20" "100" "-19" "13"
476 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:orange:signal3" "wlan0" "40" "100" "-39" "13"
477 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:orange:signal4" "wlan0" "60" "100" "-59" "13"
478 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:orange:signal5" "wlan0" "80" "100" "-79" "13"
479 ;;
480
481 tl-wa850re)
482 ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
483 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
484 ucidef_set_rssimon "wlan0" "40000" "1"
485 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:blue:signal1" "wlan0" "1" "100" "0" "13"
486 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:blue:signal2" "wlan0" "20" "100" "-19" "13"
487 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:blue:signal3" "wlan0" "40" "100" "-39" "13"
488 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:blue:signal4" "wlan0" "60" "100" "-59" "13"
489 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
490 ;;
491
492 tl-wa701nd-v2)
493 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
494 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
495 ;;
496
497 tl-wa860re)
498 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
499 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
500 ;;
501
502 tl-wa901nd)
503 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
504 ;;
505
506 tl-wa901nd-v2)
507 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
508 ;;
509
510 tl-wdr3320-v2)
511 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:green:wlan5g" "phy0tpt"
512 ;;
513
514 tl-wdr3500)
515 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
516 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
517 ;;
518
519 tl-wdr4300)
520 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1.1"
521 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "1-1.2"
522 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
523 ;;
524
525 tl-wdr4900-v2)
526 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
527 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
528 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
529 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy1tpt"
530 ;;
531
532 tl-wdr6500-v2)
533 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
534 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
535 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x04"
536 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
537 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
538 ;;
539
540 archer-c5|\
541 archer-c7)
542 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
543 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
544 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy1tpt"
545 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy0tpt"
546 ;;
547
548 tl-wr741nd)
549 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
550 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
551 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x04"
552 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
553 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
554 ;;
555
556 tl-wr741nd-v4)
557 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
558 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
559 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
560 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
561 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
562 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
563 ;;
564
565 tl-wr841n-v8 | \
566 tl-wr941nd-v5)
567 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
568 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
569 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
570 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
571 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
572 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
573 ;;
574
575 tl-wr941nd-v6)
576 ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0"
577 ucidef_set_led_switch "lan1" "LAN1" "tp-link:blue:lan1" "switch0" "0x10"
578 ucidef_set_led_switch "lan2" "LAN2" "tp-link:blue:lan2" "switch0" "0x08"
579 ucidef_set_led_switch "lan3" "LAN3" "tp-link:blue:lan3" "switch0" "0x04"
580 ucidef_set_led_switch "lan4" "LAN4" "tp-link:blue:lan4" "switch0" "0x02"
581 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
582 ;;
583
584 tl-wa830re-v2)
585 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
586 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
587 ;;
588
589 tl-wr841n-v9)
590 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
591 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
592 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
593 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
594 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
595 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
596 ;;
597
598 tl-wr842n-v2)
599 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
600 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
601 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
602 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
603 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
604 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
605 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
606 ;;
607
608 tl-wa801nd-v2 | \
609 tl-wa901nd-v3)
610 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
611 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
612 ;;
613
614 tl-wr941nd | \
615 tl-wr1041n-v2)
616 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
617 ;;
618
619 tl-wr1043nd | \
620 tl-wr1043nd-v2)
621 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
622 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
623 ;;
624
625 tl-wr2543n)
626 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
627 ;;
628
629 tube2h)
630 ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
631 ucidef_set_rssimon "wlan0" "40000" "1"
632 ucidef_set_led_rssi "signal1" "SIGNAL1" "alfa:red:signal1" "wlan0" "1" "100" "0" "13"
633 ucidef_set_led_rssi "signal2" "SIGNAL2" "alfa:orange:signal2" "wlan0" "26" "100" "-25" "13"
634 ucidef_set_led_rssi "signal3" "SIGNAL3" "alfa:green:signal3" "wlan0" "51" "100" "-50" "13"
635 ucidef_set_led_rssi "signal4" "SIGNAL4" "alfa:green:signal4" "wlan0" "76" "100" "-75" "13"
636 ;;
637
638 wrt160nl)
639 ucidef_set_led_wlan "wlan" "WLAN" "wrt160nl:blue:wlan" "phy0tpt"
640 ;;
641
642 wndap360)
643 ucidef_set_led_power "power" "POWER GREEN" "netgear:green:power" "1"
644 ;;
645
646 wndr3700)
647 ucidef_set_led_default "wan" "WAN LED (green)" "netgear:green:wan" "0"
648 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
649 ;;
650
651 r6100)
652 ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0"
653 ucidef_set_led_usbdev "usb" "USB" "netgear:blue:usb" "1-1"
654 ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy1tpt"
655 ;;
656
657 wndr3700v4 | \
658 wndr4300)
659 ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0.2"
660 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
661 ucidef_set_led_wlan "wlan2g" "WLAN2G" "netgear:green:wlan2g" "phy0tpt"
662 ucidef_set_led_wlan "wlan5g" "WLAN5G" "netgear:blue:wlan5g" "phy1tpt"
663 ;;
664
665 whr-g301n |\
666 whr-hp-g300n |\
667 whr-hp-gn)
668 ucidef_set_led_netdev "wan" "WAN" "buffalo:green:wan" "eth1"
669 ucidef_set_led_switch "lan1" "LAN1" "buffalo:green:lan1" "switch0" "0x02"
670 ucidef_set_led_switch "lan2" "LAN2" "buffalo:green:lan2" "switch0" "0x04"
671 ucidef_set_led_switch "lan3" "LAN3" "buffalo:green:lan3" "switch0" "0x08"
672 ucidef_set_led_switch "lan4" "LAN4" "buffalo:green:lan4" "switch0" "0x10"
673 ;;
674
675 wlae-ag300n)
676 ucidef_set_led_netdev "wireless" "WIRELESS" "buffalo:green:wireless" "wlan0"
677 ;;
678
679 wnr2000-v4)
680 ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
681 ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
682 ucidef_set_led_switch "lan1" "LAN1" "netgear:amber:lan1" "switch0" "0x02"
683 ucidef_set_led_switch "lan2" "LAN2" "netgear:amber:lan2" "switch0" "0x04"
684 ucidef_set_led_switch "lan3" "LAN3" "netgear:amber:lan3" "switch0" "0x08"
685 ucidef_set_led_switch "lan4" "LAN4" "netgear:amber:lan4" "switch0" "0x10"
686 ucidef_set_led_usbdev "usb" "USB" "netgear:amber:status" "1-1"
687 ;;
688
689 wpn824n)
690 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
691 ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy0tpt"
692 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02"
693 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04"
694 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08"
695 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10"
696 ucidef_set_led_default "lan1green" "LAN1 (green)" "netgear:green:lan1" "0"
697 ucidef_set_led_default "lan2green" "LAN2 (green)" "netgear:green:lan2" "0"
698 ucidef_set_led_default "lan3green" "LAN3 (green)" "netgear:green:lan3" "0"
699 ucidef_set_led_default "lan4green" "LAN4 (green)" "netgear:green:lan4" "0"
700 ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
701 ucidef_set_led_default "wps1" "WPS1" "netgear:blue:wps1" "0"
702 ucidef_set_led_default "wps2" "WPS2" "netgear:blue:wps2" "0"
703 ucidef_set_led_default "status" "STATUS" "netgear:amber:status" "0"
704 ucidef_set_led_default "test" "TEST" "netgear:amber:test" "0"
705 ;;
706
707 wzr-hp-ag300h)
708 ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
709 ucidef_set_led_netdev "router" "ROUTER" "buffalo:green:router" "eth1"
710 ucidef_set_led_usbdev "usb" "USB" "buffalo:green:usb" "1-1"
711 ;;
712
713 wzr-hp-g300nh)
714 ucidef_set_led_wlan "wlan" "Wireless" "buffalo:green:wireless" "phy0tpt"
715 ucidef_set_led_netdev "router" "Router" "buffalo:green:router" "eth1"
716 ucidef_set_led_usbdev "usb" "USB" "buffalo:blue:usb" "1-1"
717 ;;
718
719 zcn-1523h-2)
720 ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
721 ;;
722
723 zcn-1523h-5)
724 ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
725 ucidef_set_led_netdev "lan2" "lan2" "zcn-1523h:green:lan2" "eth1"
726 ;;
727 esac
728
729 board_config_flush
730
731 exit 0