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