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