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