ramips: change wifi led trigger for Archer C50v3
[openwrt/staging/mkresin.git] / target / linux / ramips / base-files / etc / board.d / 01_leds
1 #!/bin/sh
2
3 . /lib/functions/uci-defaults.sh
4
5 set_usb_led() {
6 ucidef_set_led_usbdev "usb" "USB" "${1}" "${2:-1-1}"
7 }
8
9 set_wifi_led() {
10 ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}"
11 }
12
13
14 board=$(board_name)
15 boardname="${board##*,}"
16
17 board_config_update
18
19 case $board in
20 11acnas|\
21 all0239-3g|\
22 ew1200|\
23 hw550-3g|\
24 mofi3500-3gn|\
25 sap-g3200u3|\
26 sk-wb8|\
27 w2914nsv2|\
28 wf-2881)
29 set_usb_led "$boardname:green:usb"
30 ;;
31 3g150b|\
32 3g300m)
33 set_usb_led "$boardname:blue:3g"
34 ;;
35 3g-6200n)
36 set_wifi_led "$boardname:amber:wlan"
37 set_usb_led "$boardname:blue:3g"
38 ;;
39 3g-6200nl|\
40 wnce2001)
41 set_wifi_led "$boardname:green:wlan"
42 ;;
43 br-6475nd|\
44 mzk-w300nh2)
45 set_wifi_led "$boardname:amber:wlan"
46 ;;
47 a5-v11|\
48 cs-qr10)
49 ucidef_set_led_default "power" "POWER" "$boardname:red:power" "1"
50 ;;
51 ai-br100)
52 ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" "eth0.2"
53 set_wifi_led "$boardname:blue:wlan"
54 ;;
55 air3gii)
56 set_wifi_led "$boardname:green:wlan"
57 set_usb_led "$boardname:green:mobile"
58 ;;
59 alfa-network,ac1200rm)
60 set_wifi_led "$boardname:green:wlan2g" "wlan1"
61 ucidef_set_led_default "wps" "wps" "$boardname:green:wps" "0"
62 ;;
63 alfa-network,awusfree1)
64 set_wifi_led "$boardname:blue:wlan"
65 ;;
66 all0256n-4M|\
67 all0256n-8M)
68 ucidef_set_rssimon "wlan0" "200000" "1"
69 ucidef_set_led_rssi "rssilow" "RSSILOW" "all0256n:green:rssilow" "wlan0" "1" "40" "0" "6"
70 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0256n:green:rssimed" "wlan0" "30" "80" "-29" "5"
71 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0256n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
72 set_wifi_led "rt2800pci-phy0::radio"
73 ;;
74 ar670w|\
75 ar725w|\
76 awapn2403)
77 set_wifi_led "rt2800soc-phy0::radio"
78 ;;
79 asl26555-8M|\
80 asl26555-16M)
81 ucidef_set_led_default "power" "POWER" "asl26555:green:power" "1"
82 ucidef_set_led_netdev "eth" "ETH" "asl26555:green:eth" "eth0"
83 set_wifi_led "asl26555:green:wlan"
84 set_usb_led "asl26555:green:3g"
85 ;;
86 bc2)
87 set_usb_led "$boardname:blue:usb"
88 ;;
89 broadway)
90 set_usb_led "$boardname:red:diskmounted"
91 set_wifi_led "$boardname:red:wps_active"
92 ;;
93 c108)
94 ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"
95 ucidef_set_led_netdev "modem" "modem" "$boardname:green:modem" "wwan0"
96 ;;
97 c20i)
98 ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e"
99 ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01"
100 set_usb_led "$boardname:blue:usb" "2-1"
101 ucidef_set_led_wlan "wlan" "wlan" "$boardname:blue:wlan" "phy0radio"
102 ;;
103 c50)
104 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
105 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
106 set_usb_led "$boardname:green:usb"
107 ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" wlan1
108 set_wifi_led "$boardname:green:wlan5g"
109 ;;
110 cf-wr800n)
111 ucidef_set_led_netdev "lan" "lan" "$boardname:white:ethernet" eth0.1
112 set_wifi_led "$boardname:white:wifi"
113 ;;
114 cy-swr1100)
115 ucidef_set_led_default "wps" "WPS" "$boardname:blue:wps" "0"
116 set_usb_led "$boardname:blue:usb"
117 ;;
118 d105)
119 ucidef_set_led_default "power" "POWER" "$boardname:red:power" "1"
120 set_usb_led "$boardname:green:usb"
121 ;;
122 d240)
123 set_wifi_led "$boardname:blue:wifi"
124 set_usb_led "$boardname:blue:usb"
125 ;;
126 db-wrt01)
127 ucidef_set_led_default "power" "power" "$boardname:orange:power" "1"
128 ;;
129 dch-m225)
130 ucidef_set_led_default "power" "POWER" "$board:geeen:power" "1"
131 ucidef_set_led_default "status" "STATUS" "$board:red:status" "0"
132 ;;
133 dcs-930l-b1)
134 ucidef_set_led_default "power" "POWER" "$boardname:red:power" "1"
135 ucidef_set_led_netdev "wifi" "WiFi" "$boardname:blue:wps"
136 ;;
137 dir-300-b1|\
138 dir-600-b1|\
139 dir-620-a1)
140 ucidef_set_led_default "wan" "WAN LED (amber)" "$boardname:amber:wan" "1"
141 set_wifi_led "rt2800pci-phy0::radio"
142 ;;
143 dir-300-b7|\
144 dir-320-b1|\
145 dir-610-a1|\
146 esr-9753|\
147 hlk-rm04|\
148 sl-r7205|\
149 v11st-fe|\
150 w306r-v20|\
151 wt1520-4M|\
152 wt1520-8M)
153 set_wifi_led "rt2800pci-phy0::radio"
154 ;;
155 dir-615-d|\
156 dir-615-h1)
157 ucidef_set_led_default "status" "Status LED (amber)" "$boardname:amber:status" "0"
158 set_wifi_led "rt2800pci-phy0::radio"
159 ;;
160 dir-620-d1|\
161 dlink,dwr-116-a1|\
162 mzk-ex300np)
163 set_wifi_led "$boardname:green:wifi"
164 ;;
165 dlink,dwr-921-c1)
166 set_wifi_led "$boardname:green:wifi"
167 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f"
168 ucidef_set_led_default "sigstrength" "Signal Strength" "$boardname:green:sigstrength" "0"
169 ;;
170 dir-810l|\
171 mzk-750dhp|\
172 mzk-dp150n|\
173 vr500)
174 ucidef_set_led_default "power" "power" "$boardname:green:power" "1"
175 ;;
176 dir-860l-b1)
177 ucidef_set_led_netdev "wan" "wan" "$boardname:green:net" "eth0.2"
178 ;;
179 ex2700|\
180 wn3000rpv3)
181 set_wifi_led "$boardname:green:router"
182 ;;
183 ex3700)
184 ucidef_set_led_netdev "wlan5g" "ROUTER (green)" "$boardname:green:router" "wlan0"
185 ucidef_set_led_netdev "wlan2g" "DEVICE (green)" "$boardname:green:device" "wlan1"
186 ;;
187 f5d8235-v1)
188 ucidef_set_led_default "lan" "lan" "$boardname:blue:wired" "0"
189 set_usb_led "$boardname:blue:storage"
190 set_wifi_led "$boardname:blue:wireless"
191 ;;
192 f5d8235-v2)
193 set_usb_led "$boardname:blue:storage"
194 ;;
195 fonera20n)
196 set_usb_led "$boardname:orange:usb"
197 set_wifi_led "$boardname:orange:wifi"
198 ;;
199 gb-pc1|\
200 gnubee,gb-pc2)
201 ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x01"
202 ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x10"
203 ;;
204 gl-mt300a|\
205 gl-mt300n|\
206 gl-mt750)
207 set_wifi_led "$boardname:wlan"
208 ;;
209 gl-mt300n-v2)
210 set_wifi_led "$boardname:red:wlan"
211 ;;
212 hc5661|\
213 hc5661a)
214 ucidef_set_led_default "system" "system" "$boardname:blue:system" "1"
215 ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
216 set_wifi_led "$boardname:blue:wlan2g"
217 ;;
218 hc5761)
219 ucidef_set_led_default "system" "system" "$boardname:blue:system" "1"
220 ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
221 set_wifi_led "$boardname:blue:wlan2g"
222 ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "rai0"
223 ;;
224 hc5861)
225 ucidef_set_led_default "system" "system" "$boardname:blue:system" "1"
226 ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
227 set_wifi_led "$boardname:blue:wlan2g"
228 ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "rai0"
229 ucidef_set_led_default "turbo" "turbo" "$boardname:blue:turbo" "0"
230 ;;
231 hg255d)
232 set_wifi_led "$boardname:green:wlan"
233 set_usb_led "$boardname:green:usb"
234 ucidef_set_led_netdev "internet" "internet" "$boardname:green:internet" "eth0.2"
235 ;;
236 hpm)
237 ucidef_set_led_default "power" "POWER" "$boardname:orange:power" "1"
238 ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
239 set_wifi_led "$boardname:green:wifi"
240 ;;
241 ht-tm02)
242 ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:lan" "eth0"
243 set_wifi_led "$boardname:blue:wlan"
244 ;;
245 kn|\
246 nbg-419n2)
247 set_usb_led "$boardname:green:usb"
248 set_wifi_led "rt2800pci-phy0::radio"
249 ;;
250 kn_rc|\
251 kn_rf|\
252 kng_rc)
253 set_usb_led "$boardname:green:usb"
254 set_wifi_led "$boardname:green:wifi"
255 ;;
256 linkits7688)
257 ucidef_set_led_wlan "wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt"
258 ;;
259 m2m)
260 set_wifi_led "$boardname:blue:wifi"
261 ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:wan" "eth0"
262 ;;
263 miniembplug)
264 set_wifi_led "$boardname:red:wlan"
265 set_usb_led "$boardname:green:mobile"
266 ;;
267 mir3g)
268 ucidef_set_led_switch "wan-amber" "WAN (amber)" "$boardname:amber:wan" "switch0" "0x02" "0x08"
269 ucidef_set_led_switch "lan1-amber" "LAN1 (amber)" "$boardname:amber:lan1" "switch0" "0x08" "0x08"
270 ucidef_set_led_switch "lan2-amber" "LAN2 (amber)" "$boardname:amber:lan2" "switch0" "0x04" "0x08"
271 ;;
272 miwifi-mini)
273 ucidef_set_led_default "power" "power" "$boardname:red:status" "1"
274 ;;
275 mlw221|\
276 mlwg2)
277 set_wifi_led "$boardname:blue:wifi"
278 ucidef_set_led_default "system" "system" "$boardname:blue:system" "1"
279 ;;
280 mpr-a1|\
281 mpr-a2)
282 set_wifi_led "$boardname:blue:system"
283 ;;
284 mr-102n)
285 set_wifi_led "$boardname:green:wlan"
286 set_usb_led "$boardname:green:usb"
287 ;;
288 mr200)
289 ucidef_set_led_default "power" "power" "$boardname:white:power" "1"
290 ucidef_set_led_netdev "lan" "lan" "$boardname:white:lan" "eth0.1"
291 ucidef_set_led_netdev "wan" "wan" "$boardname:white:wan" "usb0"
292 set_wifi_led "$boardname:white:wlan"
293 ;;
294 mzk-ex750np)
295 ucidef_set_led_default "power" "power" "$boardname:red:power" "1"
296 set_wifi_led "$boardname:red:wifi"
297 ;;
298 na930)
299 set_usb_led "$boardname:blue:status"
300 ;;
301 newifi-d1)
302 set_usb_led "$boardname:red:status"
303 ;;
304 nw718)
305 set_usb_led "$boardname:amber:usb"
306 ;;
307 oy-0001)
308 ucidef_set_led_default "power" "power" "$boardname:green:power" "1"
309 set_wifi_led "$boardname:green:wifi"
310 ;;
311 pbr-d1)
312 set_usb_led "$boardname:orange:usb"
313 ;;
314 pbr-m1)
315 ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
316 ucidef_set_led_default "power" "power" "$boardname:blue:power" "1"
317 ucidef_set_led_default "sys" "sys" "$boardname:blue:sys" "1"
318 ;;
319 d-team,newifi-d2)
320 set_usb_led "$boardname:blue:usb"
321 ucidef_set_led_switch "internet" "internet" "$boardname:amber:internet" "switch0" "0x10"
322 ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:blue:wlan2g" "wlan0"
323 ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:blue:wlan5g" "wlan1"
324 ;;
325 psg1208)
326 set_wifi_led "$boardname:white:wlan2g"
327 ;;
328 psg1218a|\
329 psg1218b)
330 ucidef_set_led_netdev "Network" "Network" "$boardname:blue:status" "eth0"
331 ucidef_set_led_default "status" "STATUS" "$boardname:yellow:status" "0"
332 ;;
333 px-4885-4M|\
334 px-4885-8M)
335 set_wifi_led "px-4885:orange:wifi"
336 set_usb_led "px-4885:blue:storage"
337 ;;
338 r6220)
339 ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2
340 set_wifi_led "$boardname:green:wifi"
341 set_usb_led "$boardname:green:usb"
342 ;;
343 re350-v1)
344 ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0"
345 ucidef_set_led_netdev "wifi5g" "Wifi 5G" "$boardname:blue:wifi5G" "wlan1"
346 ucidef_set_led_netdev "eth_act" "LAN act" "$boardname:green:eth_act" "eth0" "tx rx"
347 ucidef_set_led_switch "eth_link" "LAN link" "$boardname:green:eth_link" "switch0" "0x01"
348 ;;
349 re6500)
350 ucidef_set_led_default "power" "power" "$boardname:white:power" "1"
351 ucidef_set_led_default "wifi" "wifi" "$boardname:orange:wifi" "1"
352 ;;
353 rp-n53)
354 ucidef_set_led_netdev "eth" "Network" "$boardname:white:back" "eth0"
355 set_wifi_led "$boardname:blue:wifi"
356 ;;
357 rt-ac51u)
358 set_wifi_led "$boardname:blue:wifi"
359 set_usb_led "$boardname:blue:usb" "1-1"
360 ;;
361 rt-n12p)
362 ucidef_set_led_default "power" "power" "$board:green:power" "1"
363 ucidef_set_led_netdev "lan" "lan" "$board:green:lan" eth0.1
364 ucidef_set_led_netdev "wan" "wan" "$board:green:wan" eth0.2
365 set_wifi_led "$board:green:air"
366 ;;
367 rt-n14u)
368 ucidef_set_led_default "power" "power" "$boardname:blue:power" "1"
369 ucidef_set_led_netdev "lan" "lan" "$boardname:blue:lan" eth0.1
370 ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" eth0.2
371 set_wifi_led "$boardname:blue:air"
372 set_usb_led "$boardname:blue:usb"
373 ;;
374 tama,w06)
375 ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
376 ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
377 ;;
378 tew-714tru)
379 set_usb_led "$boardname:red:usb"
380 set_wifi_led "$boardname:green:wifi"
381 ;;
382 tiny-ac)
383 set_wifi_led "$boardname:orange:wifi"
384 set_usb_led "$boardname:green:usb"
385 ;;
386 tl-wr840n-v4)
387 set_wifi_led "$boardname:green:wlan"
388 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
389 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
390 ;;
391 tl-wr841n-v13)
392 set_wifi_led "$boardname:green:wlan"
393 ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x2"
394 ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x4"
395 ucidef_set_led_switch "lan3" "lan3" "$boardname:green:lan3" "switch0" "0x8"
396 ucidef_set_led_switch "lan4" "lan4" "$boardname:green:lan4" "switch0" "0x10"
397 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
398 ;;
399 tplink,c20-v1)
400 ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e"
401 ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01"
402 set_usb_led "$boardname:blue:usb"
403 ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:blue:wlan2g" "wlan0"
404 ;;
405 tplink,c20-v4)
406 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
407 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
408 ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" "wlan0"
409 ;;
410 tplink,c50-v3)
411 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
412 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
413 ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan2g" "phy0tpt"
414 ucidef_set_led_wlan "wlan5g" "wlan5g" "$boardname:green:wlan5g" "phy1tpt"
415 ;;
416 tplink,tl-mr3420-v5)
417 set_usb_led "$boardname:green:usb"
418 set_wifi_led "$boardname:green:wlan"
419 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
420 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
421 ;;
422 tplink,tl-wr902ac-v3)
423 set_usb_led "$boardname:green:usb"
424 ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan" "wlan0"
425 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x10"
426 ;;
427 u25awf-h1)
428 set_wifi_led "u25awf:red:wifi"
429 ucidef_set_led_netdev "eth" "eth" "u25awf:green:lan" "eth0"
430 ;;
431 u7628-01-128M-16M)
432 ucidef_set_led_switch "lan1" "lan1" "u7628-01:green:lan1" "switch0" "0x2"
433 ucidef_set_led_switch "lan2" "lan2" "u7628-01:green:lan2" "switch0" "0x4"
434 ucidef_set_led_switch "lan3" "lan3" "u7628-01:green:lan3" "switch0" "0x8"
435 ucidef_set_led_switch "lan4" "lan4" "u7628-01:green:lan4" "switch0" "0x10"
436 ucidef_set_led_switch "wan" "wan" "u7628-01:green:wan" "switch0" "0x01"
437 set_usb_led "u7628-01:green:usb"
438 set_wifi_led "u7628-01:green:wlan"
439 ;;
440 vocore-8M|\
441 vocore-16M)
442 ucidef_set_led_netdev "eth" "ETH" "vocore:orange:eth" "eth0"
443 set_wifi_led "vocore:green:status"
444 ;;
445 vocore2)
446 set_wifi_led "$boardname:fuchsia:status"
447 ;;
448 vocore2lite)
449 set_wifi_led "$boardname:green:status"
450 ;;
451 w502u)
452 set_usb_led "$boardname:blue:usb"
453 set_wifi_led "rt2800pci-phy0::radio"
454 ;;
455 wcr-150gn)
456 set_usb_led "$boardname:amber:user"
457 ;;
458 we1026-5g-16m)
459 ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0"
460 set_wifi_led "we1026-5g:green:wifi"
461 set_usb_led "we1026-5g:green:usb" "1-1.1"
462 ;;
463 whr-1166d|\
464 whr-300hp2|\
465 whr-600d)
466 ucidef_set_led_default "power" "power" "$boardname:green:power" "1"
467 ucidef_set_led_default "router" "router" "$boardname:green:router" "1"
468 ;;
469 wl-wn575a3)
470 ucidef_set_rssimon "wlan1" "200000" "1"
471 ucidef_set_led_rssi "wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan1" "1" "49"
472 ucidef_set_led_rssi "wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan1" "50" "84"
473 ucidef_set_led_rssi "wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan1" "85" "100"
474 ;;
475 wrh-300cr)
476 set_wifi_led "$boardname:green:wlan"
477 ucidef_set_led_netdev "lan" "lan" "$boardname:green:ethernet" "eth0"
478 ;;
479 wndr3700v5)
480 ucidef_set_led_default "power" "POWER" "$boardname:green:power" "0"
481 ;;
482 wt3020-4M|\
483 wt3020-8M)
484 ucidef_set_led_default "power" "power" "wt3020:blue:power" "0"
485 ;;
486 y1)
487 set_usb_led "$boardname:blue:usb"
488 ucidef_set_led_netdev "wifi" "WIFI" "$boardname:blue:wifi" "wlan1"
489 ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi5g" "wlan0"
490 ucidef_set_led_switch "lan" "LAN" "$boardname:blue:lan" "switch0" "0x03"
491 ;;
492 y1s)
493 set_usb_led "$boardname:blue:usb"
494 ucidef_set_led_netdev "wifi" "WIFI" "$boardname:yellow:wifi" "wlan1"
495 ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi" "wlan0"
496 ucidef_set_led_netdev "wan" "WAN" "$boardname:blue:internet" "eth0.2" "tx rx"
497 ;;
498 youhua,wr1200js)
499 ucidef_set_led_switch "internet" "INTERNET" "$boardname:green:wan" "switch0" "0x01"
500 ucidef_set_led_usbdev "usb" "USB" "$boardname:blue:usb" "1-2"
501 ucidef_set_led_default "wps" "wps" "$boardname:blue:wps" "0"
502 ;;
503 zbt-ape522ii)
504 ucidef_set_led_netdev "wlan2g4" "wlan1-link" "$boardname:green:wlan2g4" "wlan1"
505 ucidef_set_led_netdev "sys1" "wlan1" "$boardname:green:sys1" "wlan1" "tx rx"
506 ucidef_set_led_netdev "sys2" "wlan0" "$boardname:green:sys2" "wlan0" "tx rx"
507 ;;
508 zbt-cpe102)
509 ucidef_set_led_default "power" "power" "$boardname:green:4g-0" "0"
510 ;;
511 zbt-wa05)
512 ucidef_set_led_default "power" "power" "$boardname:blue:power" "1"
513 set_wifi_led "$boardname:blue:air"
514 set_usb_led "$boardname:blue:usb"
515 ;;
516 zbt-we2026)
517 set_wifi_led "$boardname:green:wlan"
518 ;;
519 zbt-we826-16M|\
520 zbt-we826-32M)
521 set_wifi_led "zbt-we826:green:wifi"
522 set_usb_led "zbt-we826:green:usb"
523 ;;
524 zbtlink,zbt-we1226)
525 set_wifi_led "$boardname:green:wlan"
526 ucidef_set_led_switch "lan1" "LAN1" "$boardname:green:lan1" "switch0" "0x01"
527 ucidef_set_led_switch "lan2" "LAN2" "$boardname:green:lan2" "switch0" "0x02"
528 ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x10"
529 ;;
530 zbt-wr8305rt)
531 ucidef_set_led_default "power" "power" "$boardname:green:sys" "1"
532 set_usb_led "$boardname:green:usb"
533 set_wifi_led "$boardname:green:wifi"
534 ;;
535 zorlik,zl5900v2)
536 ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0
537 ;;
538 zte-q7)
539 set_wifi_led "$boardname:blue:status"
540 ;;
541 youku-yk1)
542 set_wifi_led "$boardname:blue:air"
543 set_usb_led "$boardname:blue:usb"
544 ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10"
545 ;;
546 esac
547
548 board_config_flush
549
550 exit 0