ramips: express diag led handling via devicetree
[openwrt/staging/wigyori.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 ai-br100)
48 ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" "eth0.2"
49 set_wifi_led "$boardname:blue:wlan"
50 ;;
51 air3gii)
52 set_wifi_led "$boardname:green:wlan"
53 set_usb_led "$boardname:green:mobile"
54 ;;
55 alfa-network,ac1200rm)
56 set_wifi_led "$boardname:green:wlan2g" "wlan1"
57 ucidef_set_led_default "wps" "wps" "$boardname:green:wps" "0"
58 ;;
59 alfa-network,awusfree1)
60 set_wifi_led "$boardname:blue:wlan"
61 ;;
62 all0256n-4M|\
63 all0256n-8M)
64 ucidef_set_rssimon "wlan0" "200000" "1"
65 ucidef_set_led_rssi "rssilow" "RSSILOW" "all0256n:green:rssilow" "wlan0" "1" "40" "0" "6"
66 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0256n:green:rssimed" "wlan0" "30" "80" "-29" "5"
67 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0256n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
68 set_wifi_led "rt2800pci-phy0::radio"
69 ;;
70 ar670w|\
71 ar725w|\
72 awapn2403)
73 set_wifi_led "rt2800soc-phy0::radio"
74 ;;
75 asl26555-8M|\
76 asl26555-16M)
77 ucidef_set_led_netdev "eth" "ETH" "asl26555:green:eth" "eth0"
78 set_wifi_led "asl26555:green:wlan"
79 set_usb_led "asl26555:green:3g"
80 ;;
81 bc2)
82 set_usb_led "$boardname:blue:usb"
83 ;;
84 broadway)
85 set_usb_led "$boardname:red:diskmounted"
86 set_wifi_led "$boardname:red:wps_active"
87 ;;
88 c108)
89 ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"
90 ucidef_set_led_netdev "modem" "modem" "$boardname:green:modem" "wwan0"
91 ;;
92 c20i)
93 ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e"
94 ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01"
95 set_usb_led "$boardname:blue:usb" "2-1"
96 ucidef_set_led_wlan "wlan" "wlan" "$boardname:blue:wlan" "phy0radio"
97 ;;
98 c50)
99 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
100 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
101 set_usb_led "$boardname:green:usb"
102 ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" wlan1
103 set_wifi_led "$boardname:green:wlan5g"
104 ;;
105 cf-wr800n)
106 ucidef_set_led_netdev "lan" "lan" "$boardname:white:ethernet" eth0.1
107 set_wifi_led "$boardname:white:wifi"
108 ;;
109 cy-swr1100)
110 ucidef_set_led_default "wps" "WPS" "$boardname:blue:wps" "0"
111 set_usb_led "$boardname:blue:usb"
112 ;;
113 d105)
114 set_usb_led "$boardname:green:usb"
115 ;;
116 d240)
117 set_wifi_led "$boardname:blue:wifi"
118 set_usb_led "$boardname:blue:usb"
119 ;;
120 dcs-930l-b1)
121 ucidef_set_led_netdev "wifi" "WiFi" "$boardname:blue:wps"
122 ;;
123 dir-300-b1|\
124 dir-600-b1|\
125 dir-620-a1)
126 ucidef_set_led_default "wan" "WAN LED (amber)" "$boardname:amber:wan" "1"
127 set_wifi_led "rt2800pci-phy0::radio"
128 ;;
129 dir-300-b7|\
130 dir-320-b1|\
131 dir-610-a1|\
132 esr-9753|\
133 hlk-rm04|\
134 sl-r7205|\
135 v11st-fe|\
136 w306r-v20|\
137 wt1520-4M|\
138 wt1520-8M)
139 set_wifi_led "rt2800pci-phy0::radio"
140 ;;
141 dir-615-d|\
142 dir-615-h1)
143 set_wifi_led "rt2800pci-phy0::radio"
144 ;;
145 dir-620-d1|\
146 dlink,dwr-116-a1|\
147 mzk-ex300np)
148 set_wifi_led "$boardname:green:wifi"
149 ;;
150 dlink,dwr-118-a2)
151 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0e"
152 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
153 set_wifi_led "$boardname:green:wlan2g" "wlan1"
154 set_usb_led "$boardname:green:usb"
155 ucidef_set_led_default "internet" "internet" "$boardname:green:internet" "0"
156 ;;
157 dlink,dwr-921-c1)
158 set_wifi_led "$boardname:green:wifi"
159 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f"
160 ucidef_set_led_default "sigstrength" "Signal Strength" "$boardname:green:sigstrength" "0"
161 ;;
162 dir-860l-b1)
163 ucidef_set_led_netdev "wan" "wan" "$boardname:green:net" "eth0.2"
164 ;;
165 edimax,br-6478ac-v2)
166 set_wifi_led "$boardname:blue:wlan"
167 set_usb_led "$boardname:blue:usb"
168 ;;
169 ex2700|\
170 wn3000rpv3)
171 set_wifi_led "$boardname:green:router"
172 ;;
173 ex3700)
174 ucidef_set_led_netdev "wlan5g" "ROUTER (green)" "$boardname:green:router" "wlan0"
175 ucidef_set_led_netdev "wlan2g" "DEVICE (green)" "$boardname:green:device" "wlan1"
176 ;;
177 f5d8235-v1)
178 ucidef_set_led_default "lan" "lan" "$boardname:blue:wired" "0"
179 set_usb_led "$boardname:blue:storage"
180 set_wifi_led "$boardname:blue:wireless"
181 ;;
182 f5d8235-v2)
183 set_usb_led "$boardname:blue:storage"
184 ;;
185 fonera20n)
186 set_usb_led "$boardname:orange:usb"
187 set_wifi_led "$boardname:orange:wifi"
188 ;;
189 gnubee,gb-pc1|\
190 gnubee,gb-pc2)
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_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
205 set_wifi_led "$boardname:blue:wlan2g"
206 ;;
207 hc5761)
208 ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
209 set_wifi_led "$boardname:blue:wlan2g"
210 ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "rai0"
211 ;;
212 hc5861)
213 ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
214 set_wifi_led "$boardname:blue:wlan2g"
215 ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "rai0"
216 ucidef_set_led_default "turbo" "turbo" "$boardname:blue:turbo" "0"
217 ;;
218 hg255d)
219 set_wifi_led "$boardname:green:wlan"
220 set_usb_led "$boardname:green:usb"
221 ucidef_set_led_netdev "internet" "internet" "$boardname:green:internet" "eth0.2"
222 ;;
223 hiwifi,hc5861b)
224 set_wifi_led "$boardname:green:wlan2g"
225 ;;
226 hpm)
227 ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
228 set_wifi_led "$boardname:green:wifi"
229 ;;
230 ht-tm02)
231 ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:lan" "eth0"
232 set_wifi_led "$boardname:blue:wlan"
233 ;;
234 kimax,u35wf)
235 set_wifi_led "$boardname:blue:wifi"
236 ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
237 ;;
238 kn|\
239 nbg-419n2)
240 set_usb_led "$boardname:green:usb"
241 set_wifi_led "rt2800pci-phy0::radio"
242 ;;
243 kn_rc|\
244 kn_rf|\
245 kng_rc)
246 set_usb_led "$boardname:green:usb"
247 set_wifi_led "$boardname:green:wifi"
248 ;;
249 linkits7688)
250 ucidef_set_led_wlan "wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt"
251 ;;
252 m2m)
253 set_wifi_led "$boardname:blue:wifi"
254 ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:wan" "eth0"
255 ;;
256 mikrotik,rbm11g)
257 ucidef_set_rssimon "wlan0" "200000" "1"
258 ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:green:rssi0" "wlan0" "1" "100"
259 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:green:rssi1" "wlan0" "20" "100"
260 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssi2" "wlan0" "40" "100"
261 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssi3" "wlan0" "60" "100"
262 ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "$boardname:green:rssi4" "wlan0" "80" "100"
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 mlw221|\
274 mlwg2)
275 set_wifi_led "$boardname:blue:wifi"
276 ;;
277 mpr-a1|\
278 mpr-a2)
279 set_wifi_led "$boardname:blue:system"
280 ;;
281 mr-102n)
282 set_wifi_led "$boardname:green:wlan"
283 set_usb_led "$boardname:green:usb"
284 ;;
285 mr200)
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 set_wifi_led "$boardname:red:wifi"
292 ;;
293 na930)
294 set_usb_led "$boardname:blue:status"
295 ;;
296 netgear,r6120)
297 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f"
298 ucidef_set_led_wlan "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "phy0tpt"
299 ucidef_set_led_wlan "wlan5g" "WiFi 5GHz" "$boardname:green:wlan5g" "phy1tpt"
300 ;;
301 nw718)
302 set_usb_led "$boardname:amber:usb"
303 ;;
304 oy-0001)
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 ;;
313 d-team,newifi-d2)
314 set_usb_led "$boardname:blue:usb"
315 ucidef_set_led_switch "internet" "internet" "$boardname:amber:internet" "switch0" "0x10"
316 ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:blue:wlan2g" "wlan0"
317 ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:blue:wlan5g" "wlan1"
318 ;;
319 psg1208)
320 set_wifi_led "$boardname:white:wlan2g"
321 ;;
322 px-4885-4M|\
323 px-4885-8M)
324 set_wifi_led "px-4885:orange:wifi"
325 set_usb_led "px-4885:blue:storage"
326 ;;
327 r6220)
328 ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2
329 set_wifi_led "$boardname:green:wifi"
330 set_usb_led "$boardname:green:usb"
331 ;;
332 re350-v1)
333 ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0"
334 ucidef_set_led_netdev "wifi5g" "Wifi 5G" "$boardname:blue:wifi5G" "wlan1"
335 ucidef_set_led_netdev "eth_act" "LAN act" "$boardname:green:eth_act" "eth0" "tx rx"
336 ucidef_set_led_switch "eth_link" "LAN link" "$boardname:green:eth_link" "switch0" "0x01"
337 ;;
338 re6500)
339 ucidef_set_led_default "wifi" "wifi" "$boardname:orange:wifi" "1"
340 ;;
341 rp-n53)
342 ucidef_set_led_netdev "eth" "Network" "$boardname:white:back" "eth0"
343 set_wifi_led "$boardname:blue:wifi"
344 ;;
345 rt-ac51u)
346 set_wifi_led "$boardname:blue:wifi"
347 set_usb_led "$boardname:blue:usb" "1-1"
348 ;;
349 rt-n12p)
350 ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0.1
351 ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2
352 set_wifi_led "$boardname:green:air"
353 ;;
354 rt-n14u)
355 ucidef_set_led_netdev "lan" "lan" "$boardname:blue:lan" eth0.1
356 ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" eth0.2
357 set_wifi_led "$boardname:blue:air"
358 set_usb_led "$boardname:blue:usb"
359 ;;
360 tama,w06)
361 ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
362 ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
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 ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
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 ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
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,c2-v1)
386 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch1" "0x1e"
387 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch1" "0x01"
388 set_usb_led "$boardname:green:usb" "2-1"
389 set_wifi_led "$boardname:green:wlan"
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_wlan "wlan2g" "wlan2g" "$boardname:green:wlan2g" "phy0tpt"
406 ucidef_set_led_wlan "wlan5g" "wlan5g" "$boardname:green:wlan5g" "phy1tpt"
407 ;;
408 tplink,tl-wa801nd-v5)
409 ucidef_set_led_wlan "wlan" "wlan" "$boardname:green:wlan" "phy0tpt"
410 ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"
411 ;;
412 tplink,tl-mr3420-v5|\
413 tplink,tl-wr842n-v5)
414 set_usb_led "$boardname:green:usb"
415 ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
416 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
417 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
418 ;;
419 tplink,tl-wr902ac-v3)
420 set_usb_led "$boardname:green:usb"
421 ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
422 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x10"
423 ;;
424 u25awf-h1)
425 set_wifi_led "u25awf:red:wifi"
426 ucidef_set_led_netdev "eth" "eth" "u25awf:green:lan" "eth0"
427 ;;
428 u7628-01-128M-16M)
429 ucidef_set_led_switch "lan1" "lan1" "u7628-01:green:lan1" "switch0" "0x2"
430 ucidef_set_led_switch "lan2" "lan2" "u7628-01:green:lan2" "switch0" "0x4"
431 ucidef_set_led_switch "lan3" "lan3" "u7628-01:green:lan3" "switch0" "0x8"
432 ucidef_set_led_switch "lan4" "lan4" "u7628-01:green:lan4" "switch0" "0x10"
433 ucidef_set_led_switch "wan" "wan" "u7628-01:green:wan" "switch0" "0x01"
434 set_usb_led "u7628-01:green:usb"
435 set_wifi_led "u7628-01:green:wlan"
436 ;;
437 vocore-8M|\
438 vocore-16M)
439 ucidef_set_led_netdev "eth" "ETH" "vocore:orange:eth" "eth0"
440 set_wifi_led "vocore:green:status"
441 ;;
442 vocore2)
443 set_wifi_led "$boardname:fuchsia:status"
444 ;;
445 vocore2lite)
446 set_wifi_led "$boardname:green:status"
447 ;;
448 w502u)
449 set_usb_led "$boardname:blue:usb"
450 set_wifi_led "rt2800pci-phy0::radio"
451 ;;
452 wcr-150gn)
453 set_usb_led "$boardname:amber:user"
454 ;;
455 we1026-5g-16m)
456 ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0"
457 set_wifi_led "we1026-5g:green:wifi"
458 set_usb_led "we1026-5g:green:usb" "1-1.1"
459 ;;
460 whr-1166d|\
461 whr-300hp2|\
462 whr-600d)
463 ucidef_set_led_default "router" "router" "$boardname:green:router" "1"
464 ;;
465 wl-wn575a3)
466 ucidef_set_rssimon "wlan1" "200000" "1"
467 ucidef_set_led_rssi "wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan1" "1" "49"
468 ucidef_set_led_rssi "wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan1" "50" "84"
469 ucidef_set_led_rssi "wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan1" "85" "100"
470 ;;
471 wrh-300cr)
472 set_wifi_led "$boardname:green:wlan"
473 ucidef_set_led_netdev "lan" "lan" "$boardname:green:ethernet" "eth0"
474 ;;
475 wndr3700v5)
476 ucidef_set_led_default "power" "POWER" "$boardname:green:power" "0"
477 ;;
478 wt3020-4M|\
479 wt3020-8M)
480 ucidef_set_led_default "power" "power" "wt3020:blue:power" "0"
481 ;;
482 y1)
483 set_usb_led "$boardname:blue:usb"
484 ucidef_set_led_netdev "wifi" "WIFI" "$boardname:blue:wifi" "wlan1"
485 ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi5g" "wlan0"
486 ucidef_set_led_switch "lan" "LAN" "$boardname:blue:lan" "switch0" "0x03"
487 ;;
488 y1s)
489 set_usb_led "$boardname:blue:usb"
490 ucidef_set_led_netdev "wifi" "WIFI" "$boardname:yellow:wifi" "wlan1"
491 ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi" "wlan0"
492 ucidef_set_led_netdev "wan" "WAN" "$boardname:blue:internet" "eth0.2" "tx rx"
493 ;;
494 youhua,wr1200js)
495 ucidef_set_led_switch "internet" "INTERNET" "$boardname:green:wan" "switch0" "0x01"
496 ucidef_set_led_usbdev "usb" "USB" "$boardname:blue:usb" "1-2"
497 ucidef_set_led_default "wps" "wps" "$boardname:blue:wps" "0"
498 ;;
499 zbt-ape522ii)
500 ucidef_set_led_netdev "wlan2g4" "wlan1-link" "$boardname:green:wlan2g4" "wlan1"
501 ucidef_set_led_netdev "sys1" "wlan1" "$boardname:green:sys1" "wlan1" "tx rx"
502 ucidef_set_led_netdev "sys2" "wlan0" "$boardname:green:sys2" "wlan0" "tx rx"
503 ;;
504 zbt-cpe102)
505 ucidef_set_led_default "power" "power" "$boardname:green:4g-0" "0"
506 ;;
507 zbt-wa05)
508 set_wifi_led "$boardname:blue:air"
509 set_usb_led "$boardname:blue:usb"
510 ;;
511 zbt-we2026)
512 set_wifi_led "$boardname:green:wlan"
513 ;;
514 zbt-we826-16M|\
515 zbt-we826-32M)
516 set_wifi_led "zbt-we826:green:wifi"
517 set_usb_led "zbt-we826:green:usb"
518 ;;
519 zbtlink,zbt-we1226)
520 set_wifi_led "$boardname:green:wlan"
521 ucidef_set_led_switch "lan1" "LAN1" "$boardname:green:lan1" "switch0" "0x01"
522 ucidef_set_led_switch "lan2" "LAN2" "$boardname:green:lan2" "switch0" "0x02"
523 ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x10"
524 ;;
525 zbt-wr8305rt)
526 set_usb_led "$boardname:green:usb"
527 set_wifi_led "$boardname:green:wifi"
528 ;;
529 zorlik,zl5900v2)
530 ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0
531 ;;
532 zte-q7)
533 set_wifi_led "$boardname:blue:status"
534 ;;
535 zyxel,keenetic-extra-ii)
536 set_wifi_led "$boardname:green:wifi"
537 set_usb_led "$boardname:green:usb"
538 ucidef_set_led_switch "internet" "internet" "$boardname:green:internet" "switch0" "0x01"
539 ;;
540 youku-yk1)
541 set_wifi_led "$boardname:blue:air"
542 set_usb_led "$boardname:blue:usb"
543 ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10"
544 ;;
545 esac
546
547 board_config_flush
548
549 exit 0