ar71xx: WNR1000v2: enable control of all LEDs and buttons
[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 omy-x1)
398 ucidef_set_led_default "power" "POWER" "omy:green:power" "1"
399 ucidef_set_led_default "wan" "WAN" "omy:green:wan" "eth0"
400 ;;
401
402 qihoo-c301)
403 ucidef_set_led_wlan "wlan2g" "WLAN2G" "qihoo:red:status" "phy1tpt"
404 ;;
405
406 smart-300)
407 ucidef_set_led_netdev "wan" "WAN" "nc-link:green:wan" "eth0"
408 ucidef_set_led_switch "lan1" "LAN1" "nc-link:green:lan1" "switch0" "0x04"
409 ucidef_set_led_switch "lan2" "LAN2" "nc-link:green:lan2" "switch0" "0x08"
410 ucidef_set_led_switch "lan3" "LAN3" "nc-link:green:lan3" "switch0" "0x10"
411 ucidef_set_led_switch "lan4" "LAN4" "nc-link:green:lan4" "switch0" "0x02"
412 ucidef_set_led_wlan "wlan" "WLAN" "nc-link:green:wlan" "phy0tpt"
413 ;;
414
415 tellstick-znet-lite)
416 ucidef_set_led_netdev "lan_act" "LANACT" "tellstick:green:lan" "eth0" "tx rx"
417 ucidef_set_led_netdev "lan_link" "LANLINK" "tellstick:orange:lan" "eth0" "link"
418 ;;
419
420 tew-712br)
421 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
422 ucidef_set_led_switch "lan1" "LAN1" "trendnet:green:lan1" "switch0" "0x02"
423 ucidef_set_led_switch "lan2" "LAN2" "trendnet:green:lan2" "switch0" "0x04"
424 ucidef_set_led_switch "lan3" "LAN3" "trendnet:green:lan3" "switch0" "0x08"
425 ucidef_set_led_switch "lan4" "LAN4" "trendnet:green:lan4" "switch0" "0x10"
426 ucidef_set_led_wlan "wlan" "WLAN" "trendnet:green:wlan" "phy0tpt"
427 ;;
428
429 tew-732br)
430 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
431 ;;
432
433 tew-823dru)
434 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:planet" "eth0"
435 ;;
436
437 tl-mr11u | \
438 tl-mr3020 | \
439 tl-mr3040 | \
440 tl-mr3040-v2)
441 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
442 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
443 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
444 ;;
445
446 tl-mr3220 | \
447 tl-mr3420 )
448 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
449 ;;
450
451 tl-mr3220-v2)
452 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
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-mr3420-v2)
462 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
463 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
464 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
465 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
466 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
467 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
468 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
469 ;;
470
471 tl-wa7210n-v2)
472 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
473 ucidef_set_rssimon "wlan0" "40000" "1"
474 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:signal1" "wlan0" "1" "100" "0" "13"
475 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:signal2" "wlan0" "26" "100" "-25" "13"
476 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:signal3" "wlan0" "51" "100" "-50" "13"
477 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:signal4" "wlan0" "76" "100" "-75" "13"
478 ;;
479
480 tl-wa750re)
481 ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
482 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "phy0tpt"
483 ucidef_set_rssimon "wlan0" "40000" "1"
484 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:orange:signal1" "wlan0" "1" "100" "0" "13"
485 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:orange:signal2" "wlan0" "20" "100" "-19" "13"
486 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:orange:signal3" "wlan0" "40" "100" "-39" "13"
487 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:orange:signal4" "wlan0" "60" "100" "-59" "13"
488 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:orange:signal5" "wlan0" "80" "100" "-79" "13"
489 ;;
490
491 tl-wa850re)
492 ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
493 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
494 ucidef_set_rssimon "wlan0" "40000" "1"
495 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:blue:signal1" "wlan0" "1" "100" "0" "13"
496 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:blue:signal2" "wlan0" "20" "100" "-19" "13"
497 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:blue:signal3" "wlan0" "40" "100" "-39" "13"
498 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:blue:signal4" "wlan0" "60" "100" "-59" "13"
499 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
500 ;;
501
502 tl-wa701nd-v2)
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-wa860re)
508 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
509 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
510 ;;
511
512 tl-wa901nd)
513 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
514 ;;
515
516 tl-wa901nd-v2)
517 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
518 ;;
519
520 tl-wdr3320-v2)
521 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:green:wlan5g" "phy0tpt"
522 ;;
523
524 tl-wdr3500)
525 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
526 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
527 ;;
528
529 tl-wdr4300)
530 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1.1"
531 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "1-1.2"
532 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
533 ;;
534
535 tl-wdr4900-v2)
536 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
537 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
538 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
539 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy1tpt"
540 ;;
541
542 tl-wdr6500-v2)
543 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
544 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
545 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x04"
546 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
547 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
548 ;;
549
550 archer-c5|\
551 archer-c7)
552 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
553 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
554 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy1tpt"
555 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy0tpt"
556 ;;
557
558 tl-wr741nd)
559 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
560 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
561 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x04"
562 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
563 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
564 ;;
565
566 tl-wr741nd-v4)
567 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
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-wr841n-v8 | \
576 tl-wr941nd-v5)
577 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
578 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
579 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
580 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
581 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
582 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
583 ;;
584
585 tl-wr941nd-v6)
586 ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0"
587 ucidef_set_led_switch "lan1" "LAN1" "tp-link:blue:lan1" "switch0" "0x10"
588 ucidef_set_led_switch "lan2" "LAN2" "tp-link:blue:lan2" "switch0" "0x08"
589 ucidef_set_led_switch "lan3" "LAN3" "tp-link:blue:lan3" "switch0" "0x04"
590 ucidef_set_led_switch "lan4" "LAN4" "tp-link:blue:lan4" "switch0" "0x02"
591 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
592 ;;
593
594 tl-wa830re-v2)
595 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
596 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
597 ;;
598
599 tl-wr841n-v9)
600 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
601 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
602 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
603 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
604 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
605 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
606 ;;
607
608 tl-wr842n-v2)
609 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
610 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
611 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
612 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
613 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
614 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
615 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
616 ;;
617
618 tl-wa801nd-v2 | \
619 tl-wa901nd-v3)
620 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
621 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
622 ;;
623
624 tl-wr941nd | \
625 tl-wr1041n-v2)
626 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
627 ;;
628
629 tl-wr1043nd | \
630 tl-wr1043nd-v2)
631 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
632 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
633 ;;
634
635 tl-wr2543n)
636 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
637 ;;
638
639 tube2h)
640 ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
641 ucidef_set_rssimon "wlan0" "40000" "1"
642 ucidef_set_led_rssi "signal1" "SIGNAL1" "alfa:red:signal1" "wlan0" "1" "100" "0" "13"
643 ucidef_set_led_rssi "signal2" "SIGNAL2" "alfa:orange:signal2" "wlan0" "26" "100" "-25" "13"
644 ucidef_set_led_rssi "signal3" "SIGNAL3" "alfa:green:signal3" "wlan0" "51" "100" "-50" "13"
645 ucidef_set_led_rssi "signal4" "SIGNAL4" "alfa:green:signal4" "wlan0" "76" "100" "-75" "13"
646 ;;
647
648 wrt160nl)
649 ucidef_set_led_wlan "wlan" "WLAN" "wrt160nl:blue:wlan" "phy0tpt"
650 ;;
651
652 wndap360)
653 ucidef_set_led_power "power" "POWER GREEN" "netgear:green:power" "1"
654 ;;
655
656 wndr3700)
657 ucidef_set_led_default "wan" "WAN LED (green)" "netgear:green:wan" "0"
658 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
659 ;;
660
661 r6100)
662 ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0"
663 ucidef_set_led_usbdev "usb" "USB" "netgear:blue:usb" "1-1"
664 ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy1tpt"
665 ;;
666
667 wndr3700v4 | \
668 wndr4300)
669 ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0.2"
670 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
671 ucidef_set_led_wlan "wlan2g" "WLAN2G" "netgear:green:wlan2g" "phy0tpt"
672 ucidef_set_led_wlan "wlan5g" "WLAN5G" "netgear:blue:wlan5g" "phy1tpt"
673 ;;
674
675 whr-g301n |\
676 whr-hp-g300n |\
677 whr-hp-gn)
678 ucidef_set_led_netdev "wan" "WAN" "buffalo:green:wan" "eth1"
679 ucidef_set_led_switch "lan1" "LAN1" "buffalo:green:lan1" "switch0" "0x02"
680 ucidef_set_led_switch "lan2" "LAN2" "buffalo:green:lan2" "switch0" "0x04"
681 ucidef_set_led_switch "lan3" "LAN3" "buffalo:green:lan3" "switch0" "0x08"
682 ucidef_set_led_switch "lan4" "LAN4" "buffalo:green:lan4" "switch0" "0x10"
683 ;;
684
685 wlae-ag300n)
686 ucidef_set_led_netdev "wireless" "WIRELESS" "buffalo:green:wireless" "wlan0"
687 ;;
688
689 wnr1000-v2 |\
690 wnr2000-v3)
691 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
692 ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
693 ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
694 ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" "0x04"
695 ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" "0x04"
696 ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" "0x04"
697 ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" "0x04"
698 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02" "0x02"
699 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04" "0x02"
700 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08" "0x02"
701 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
702 ;;
703
704 wnr2000-v4)
705 ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
706 ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
707 ucidef_set_led_switch "lan1" "LAN1" "netgear:amber:lan1" "switch0" "0x02"
708 ucidef_set_led_switch "lan2" "LAN2" "netgear:amber:lan2" "switch0" "0x04"
709 ucidef_set_led_switch "lan3" "LAN3" "netgear:amber:lan3" "switch0" "0x08"
710 ucidef_set_led_switch "lan4" "LAN4" "netgear:amber:lan4" "switch0" "0x10"
711 ucidef_set_led_usbdev "usb" "USB" "netgear:amber:status" "1-1"
712 ;;
713
714 wnr612-v2)
715 ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
716 ucidef_set_led_netdev "wlan" "WLAN" "netgear:green:wlan" "wlan0"
717 ucidef_set_led_switch "lan1" "LAN1" "netgear:green:lan1" "switch0" "0x02" "0x0f"
718 ucidef_set_led_switch "lan2" "LAN2" "netgear:green:lan2" "switch0" "0x04" "0x0f"
719 ;;
720
721 wpn824n)
722 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
723 ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy0tpt"
724 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02"
725 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04"
726 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08"
727 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10"
728 ucidef_set_led_default "lan1green" "LAN1 (green)" "netgear:green:lan1" "0"
729 ucidef_set_led_default "lan2green" "LAN2 (green)" "netgear:green:lan2" "0"
730 ucidef_set_led_default "lan3green" "LAN3 (green)" "netgear:green:lan3" "0"
731 ucidef_set_led_default "lan4green" "LAN4 (green)" "netgear:green:lan4" "0"
732 ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
733 ucidef_set_led_default "wps1" "WPS1" "netgear:blue:wps1" "0"
734 ucidef_set_led_default "wps2" "WPS2" "netgear:blue:wps2" "0"
735 ucidef_set_led_default "status" "STATUS" "netgear:amber:status" "0"
736 ucidef_set_led_default "test" "TEST" "netgear:amber:test" "0"
737 ;;
738
739 wzr-hp-ag300h)
740 ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
741 ucidef_set_led_netdev "router" "ROUTER" "buffalo:green:router" "eth1"
742 ucidef_set_led_usbdev "usb" "USB" "buffalo:green:usb" "1-1"
743 ;;
744
745 wzr-hp-g300nh)
746 ucidef_set_led_wlan "wlan" "Wireless" "buffalo:green:wireless" "phy0tpt"
747 ucidef_set_led_netdev "router" "Router" "buffalo:green:router" "eth1"
748 ucidef_set_led_usbdev "usb" "USB" "buffalo:blue:usb" "1-1"
749 ;;
750
751 zcn-1523h-2)
752 ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
753 ;;
754
755 zcn-1523h-5)
756 ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
757 ucidef_set_led_netdev "lan2" "lan2" "zcn-1523h:green:lan2" "eth1"
758 ;;
759 esac
760
761 board_config_flush
762
763 exit 0