ramips: add support for I-O DATA WN-GX300GR
[openwrt/openwrt.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 iodata,wn-gx300gr|\
172 mzk-750dhp|\
173 mzk-dp150n|\
174 vr500)
175 ucidef_set_led_default "power" "power" "$boardname:green:power" "1"
176 ;;
177 dir-860l-b1)
178 ucidef_set_led_netdev "wan" "wan" "$boardname:green:net" "eth0.2"
179 ;;
180 ex2700|\
181 wn3000rpv3)
182 set_wifi_led "$boardname:green:router"
183 ;;
184 ex3700)
185 ucidef_set_led_netdev "wlan5g" "ROUTER (green)" "$boardname:green:router" "wlan0"
186 ucidef_set_led_netdev "wlan2g" "DEVICE (green)" "$boardname:green:device" "wlan1"
187 ;;
188 f5d8235-v1)
189 ucidef_set_led_default "lan" "lan" "$boardname:blue:wired" "0"
190 set_usb_led "$boardname:blue:storage"
191 set_wifi_led "$boardname:blue:wireless"
192 ;;
193 f5d8235-v2)
194 set_usb_led "$boardname:blue:storage"
195 ;;
196 fonera20n)
197 set_usb_led "$boardname:orange:usb"
198 set_wifi_led "$boardname:orange:wifi"
199 ;;
200 gnubee,gb-pc1|\
201 gnubee,gb-pc2)
202 ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x01"
203 ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x10"
204 ;;
205 gl-mt300a|\
206 gl-mt300n|\
207 gl-mt750)
208 set_wifi_led "$boardname:wlan"
209 ;;
210 gl-mt300n-v2)
211 set_wifi_led "$boardname:red:wlan"
212 ;;
213 hc5661|\
214 hc5661a)
215 ucidef_set_led_default "system" "system" "$boardname:blue:system" "1"
216 ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
217 set_wifi_led "$boardname:blue:wlan2g"
218 ;;
219 hc5761)
220 ucidef_set_led_default "system" "system" "$boardname:blue:system" "1"
221 ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
222 set_wifi_led "$boardname:blue:wlan2g"
223 ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "rai0"
224 ;;
225 hc5861)
226 ucidef_set_led_default "system" "system" "$boardname:blue:system" "1"
227 ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
228 set_wifi_led "$boardname:blue:wlan2g"
229 ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "rai0"
230 ucidef_set_led_default "turbo" "turbo" "$boardname:blue:turbo" "0"
231 ;;
232 hg255d)
233 set_wifi_led "$boardname:green:wlan"
234 set_usb_led "$boardname:green:usb"
235 ucidef_set_led_netdev "internet" "internet" "$boardname:green:internet" "eth0.2"
236 ;;
237 hpm)
238 ucidef_set_led_default "power" "POWER" "$boardname:orange:power" "1"
239 ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
240 set_wifi_led "$boardname:green:wifi"
241 ;;
242 ht-tm02)
243 ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:lan" "eth0"
244 set_wifi_led "$boardname:blue:wlan"
245 ;;
246 kn|\
247 nbg-419n2)
248 set_usb_led "$boardname:green:usb"
249 set_wifi_led "rt2800pci-phy0::radio"
250 ;;
251 kn_rc|\
252 kn_rf|\
253 kng_rc)
254 set_usb_led "$boardname:green:usb"
255 set_wifi_led "$boardname:green:wifi"
256 ;;
257 linkits7688)
258 ucidef_set_led_wlan "wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt"
259 ;;
260 m2m)
261 set_wifi_led "$boardname:blue:wifi"
262 ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:wan" "eth0"
263 ;;
264 miniembplug)
265 set_wifi_led "$boardname:red:wlan"
266 set_usb_led "$boardname:green:mobile"
267 ;;
268 mir3g)
269 ucidef_set_led_switch "wan-amber" "WAN (amber)" "$boardname:amber:wan" "switch0" "0x02" "0x08"
270 ucidef_set_led_switch "lan1-amber" "LAN1 (amber)" "$boardname:amber:lan1" "switch0" "0x08" "0x08"
271 ucidef_set_led_switch "lan2-amber" "LAN2 (amber)" "$boardname:amber:lan2" "switch0" "0x04" "0x08"
272 ;;
273 miwifi-mini)
274 ucidef_set_led_default "power" "power" "$boardname:red:status" "1"
275 ;;
276 mlw221|\
277 mlwg2)
278 set_wifi_led "$boardname:blue:wifi"
279 ucidef_set_led_default "system" "system" "$boardname:blue:system" "1"
280 ;;
281 mpr-a1|\
282 mpr-a2)
283 set_wifi_led "$boardname:blue:system"
284 ;;
285 mr-102n)
286 set_wifi_led "$boardname:green:wlan"
287 set_usb_led "$boardname:green:usb"
288 ;;
289 mr200)
290 ucidef_set_led_default "power" "power" "$boardname:white:power" "1"
291 ucidef_set_led_netdev "lan" "lan" "$boardname:white:lan" "eth0.1"
292 ucidef_set_led_netdev "wan" "wan" "$boardname:white:wan" "usb0"
293 set_wifi_led "$boardname:white:wlan"
294 ;;
295 mzk-ex750np)
296 ucidef_set_led_default "power" "power" "$boardname:red:power" "1"
297 set_wifi_led "$boardname:red:wifi"
298 ;;
299 na930)
300 set_usb_led "$boardname:blue:status"
301 ;;
302 newifi-d1)
303 set_usb_led "$boardname:red:status"
304 ;;
305 nw718)
306 set_usb_led "$boardname:amber:usb"
307 ;;
308 oy-0001)
309 ucidef_set_led_default "power" "power" "$boardname:green:power" "1"
310 set_wifi_led "$boardname:green:wifi"
311 ;;
312 pbr-d1)
313 set_usb_led "$boardname:orange:usb"
314 ;;
315 pbr-m1)
316 ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
317 ucidef_set_led_default "power" "power" "$boardname:blue:power" "1"
318 ucidef_set_led_default "sys" "sys" "$boardname:blue:sys" "1"
319 ;;
320 d-team,newifi-d2)
321 set_usb_led "$boardname:blue:usb"
322 ucidef_set_led_switch "internet" "internet" "$boardname:amber:internet" "switch0" "0x10"
323 ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:blue:wlan2g" "wlan0"
324 ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:blue:wlan5g" "wlan1"
325 ;;
326 psg1208)
327 set_wifi_led "$boardname:white:wlan2g"
328 ;;
329 psg1218a|\
330 psg1218b)
331 ucidef_set_led_netdev "Network" "Network" "$boardname:blue:status" "eth0"
332 ucidef_set_led_default "status" "STATUS" "$boardname:yellow:status" "0"
333 ;;
334 px-4885-4M|\
335 px-4885-8M)
336 set_wifi_led "px-4885:orange:wifi"
337 set_usb_led "px-4885:blue:storage"
338 ;;
339 r6220)
340 ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2
341 set_wifi_led "$boardname:green:wifi"
342 set_usb_led "$boardname:green:usb"
343 ;;
344 re350-v1)
345 ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0"
346 ucidef_set_led_netdev "wifi5g" "Wifi 5G" "$boardname:blue:wifi5G" "wlan1"
347 ucidef_set_led_netdev "eth_act" "LAN act" "$boardname:green:eth_act" "eth0" "tx rx"
348 ucidef_set_led_switch "eth_link" "LAN link" "$boardname:green:eth_link" "switch0" "0x01"
349 ;;
350 re6500)
351 ucidef_set_led_default "power" "power" "$boardname:white:power" "1"
352 ucidef_set_led_default "wifi" "wifi" "$boardname:orange:wifi" "1"
353 ;;
354 rp-n53)
355 ucidef_set_led_netdev "eth" "Network" "$boardname:white:back" "eth0"
356 set_wifi_led "$boardname:blue:wifi"
357 ;;
358 rt-ac51u)
359 set_wifi_led "$boardname:blue:wifi"
360 set_usb_led "$boardname:blue:usb" "1-1"
361 ;;
362 rt-n12p)
363 ucidef_set_led_default "power" "power" "$board:green:power" "1"
364 ucidef_set_led_netdev "lan" "lan" "$board:green:lan" eth0.1
365 ucidef_set_led_netdev "wan" "wan" "$board:green:wan" eth0.2
366 set_wifi_led "$board:green:air"
367 ;;
368 rt-n14u)
369 ucidef_set_led_default "power" "power" "$boardname:blue:power" "1"
370 ucidef_set_led_netdev "lan" "lan" "$boardname:blue:lan" eth0.1
371 ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" eth0.2
372 set_wifi_led "$boardname:blue:air"
373 set_usb_led "$boardname:blue:usb"
374 ;;
375 tama,w06)
376 ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
377 ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
378 ;;
379 tew-714tru)
380 set_usb_led "$boardname:red:usb"
381 set_wifi_led "$boardname:green:wifi"
382 ;;
383 tiny-ac)
384 set_wifi_led "$boardname:orange:wifi"
385 set_usb_led "$boardname:green:usb"
386 ;;
387 tl-wr840n-v4)
388 set_wifi_led "$boardname:green:wlan"
389 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
390 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
391 ;;
392 tl-wr841n-v13)
393 set_wifi_led "$boardname:green:wlan"
394 ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x2"
395 ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x4"
396 ucidef_set_led_switch "lan3" "lan3" "$boardname:green:lan3" "switch0" "0x8"
397 ucidef_set_led_switch "lan4" "lan4" "$boardname:green:lan4" "switch0" "0x10"
398 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
399 ;;
400 tplink,c20-v1)
401 ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e"
402 ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01"
403 set_usb_led "$boardname:blue:usb"
404 ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:blue:wlan2g" "wlan0"
405 ;;
406 tplink,c20-v4)
407 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
408 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
409 ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" "wlan0"
410 ;;
411 tplink,c50-v3)
412 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
413 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
414 ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan2g" "phy0tpt"
415 ucidef_set_led_wlan "wlan5g" "wlan5g" "$boardname:green:wlan5g" "phy1tpt"
416 ;;
417 tplink,tl-mr3420-v5)
418 set_usb_led "$boardname:green:usb"
419 set_wifi_led "$boardname:green:wlan"
420 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
421 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
422 ;;
423 tplink,tl-wr902ac-v3)
424 set_usb_led "$boardname:green:usb"
425 ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan" "wlan0"
426 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x10"
427 ;;
428 u25awf-h1)
429 set_wifi_led "u25awf:red:wifi"
430 ucidef_set_led_netdev "eth" "eth" "u25awf:green:lan" "eth0"
431 ;;
432 u7628-01-128M-16M)
433 ucidef_set_led_switch "lan1" "lan1" "u7628-01:green:lan1" "switch0" "0x2"
434 ucidef_set_led_switch "lan2" "lan2" "u7628-01:green:lan2" "switch0" "0x4"
435 ucidef_set_led_switch "lan3" "lan3" "u7628-01:green:lan3" "switch0" "0x8"
436 ucidef_set_led_switch "lan4" "lan4" "u7628-01:green:lan4" "switch0" "0x10"
437 ucidef_set_led_switch "wan" "wan" "u7628-01:green:wan" "switch0" "0x01"
438 set_usb_led "u7628-01:green:usb"
439 set_wifi_led "u7628-01:green:wlan"
440 ;;
441 vocore-8M|\
442 vocore-16M)
443 ucidef_set_led_netdev "eth" "ETH" "vocore:orange:eth" "eth0"
444 set_wifi_led "vocore:green:status"
445 ;;
446 vocore2)
447 set_wifi_led "$boardname:fuchsia:status"
448 ;;
449 vocore2lite)
450 set_wifi_led "$boardname:green:status"
451 ;;
452 w502u)
453 set_usb_led "$boardname:blue:usb"
454 set_wifi_led "rt2800pci-phy0::radio"
455 ;;
456 wcr-150gn)
457 set_usb_led "$boardname:amber:user"
458 ;;
459 we1026-5g-16m)
460 ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0"
461 set_wifi_led "we1026-5g:green:wifi"
462 set_usb_led "we1026-5g:green:usb" "1-1.1"
463 ;;
464 whr-1166d|\
465 whr-300hp2|\
466 whr-600d)
467 ucidef_set_led_default "power" "power" "$boardname:green:power" "1"
468 ucidef_set_led_default "router" "router" "$boardname:green:router" "1"
469 ;;
470 wl-wn575a3)
471 ucidef_set_rssimon "wlan1" "200000" "1"
472 ucidef_set_led_rssi "wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan1" "1" "49"
473 ucidef_set_led_rssi "wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan1" "50" "84"
474 ucidef_set_led_rssi "wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan1" "85" "100"
475 ;;
476 wrh-300cr)
477 set_wifi_led "$boardname:green:wlan"
478 ucidef_set_led_netdev "lan" "lan" "$boardname:green:ethernet" "eth0"
479 ;;
480 wndr3700v5)
481 ucidef_set_led_default "power" "POWER" "$boardname:green:power" "0"
482 ;;
483 wt3020-4M|\
484 wt3020-8M)
485 ucidef_set_led_default "power" "power" "wt3020:blue:power" "0"
486 ;;
487 y1)
488 set_usb_led "$boardname:blue:usb"
489 ucidef_set_led_netdev "wifi" "WIFI" "$boardname:blue:wifi" "wlan1"
490 ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi5g" "wlan0"
491 ucidef_set_led_switch "lan" "LAN" "$boardname:blue:lan" "switch0" "0x03"
492 ;;
493 y1s)
494 set_usb_led "$boardname:blue:usb"
495 ucidef_set_led_netdev "wifi" "WIFI" "$boardname:yellow:wifi" "wlan1"
496 ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi" "wlan0"
497 ucidef_set_led_netdev "wan" "WAN" "$boardname:blue:internet" "eth0.2" "tx rx"
498 ;;
499 youhua,wr1200js)
500 ucidef_set_led_switch "internet" "INTERNET" "$boardname:green:wan" "switch0" "0x01"
501 ucidef_set_led_usbdev "usb" "USB" "$boardname:blue:usb" "1-2"
502 ucidef_set_led_default "wps" "wps" "$boardname:blue:wps" "0"
503 ;;
504 zbt-ape522ii)
505 ucidef_set_led_netdev "wlan2g4" "wlan1-link" "$boardname:green:wlan2g4" "wlan1"
506 ucidef_set_led_netdev "sys1" "wlan1" "$boardname:green:sys1" "wlan1" "tx rx"
507 ucidef_set_led_netdev "sys2" "wlan0" "$boardname:green:sys2" "wlan0" "tx rx"
508 ;;
509 zbt-cpe102)
510 ucidef_set_led_default "power" "power" "$boardname:green:4g-0" "0"
511 ;;
512 zbt-wa05)
513 ucidef_set_led_default "power" "power" "$boardname:blue:power" "1"
514 set_wifi_led "$boardname:blue:air"
515 set_usb_led "$boardname:blue:usb"
516 ;;
517 zbt-we2026)
518 set_wifi_led "$boardname:green:wlan"
519 ;;
520 zbt-we826-16M|\
521 zbt-we826-32M)
522 set_wifi_led "zbt-we826:green:wifi"
523 set_usb_led "zbt-we826:green:usb"
524 ;;
525 zbtlink,zbt-we1226)
526 set_wifi_led "$boardname:green:wlan"
527 ucidef_set_led_switch "lan1" "LAN1" "$boardname:green:lan1" "switch0" "0x01"
528 ucidef_set_led_switch "lan2" "LAN2" "$boardname:green:lan2" "switch0" "0x02"
529 ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x10"
530 ;;
531 zbt-wr8305rt)
532 ucidef_set_led_default "power" "power" "$boardname:green:sys" "1"
533 set_usb_led "$boardname:green:usb"
534 set_wifi_led "$boardname:green:wifi"
535 ;;
536 zorlik,zl5900v2)
537 ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0
538 ;;
539 zte-q7)
540 set_wifi_led "$boardname:blue:status"
541 ;;
542 youku-yk1)
543 set_wifi_led "$boardname:blue:air"
544 set_usb_led "$boardname:blue:usb"
545 ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10"
546 ;;
547 esac
548
549 board_config_flush
550
551 exit 0