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