ramips: add support for Xiaomi Mi Router 3 Pro
[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_wifi_led() {
6 ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}"
7 }
8
9
10 board=$(board_name)
11 boardname="${board##*,}"
12
13 board_config_update
14
15 case $board in
16 3g-6200n)
17 set_wifi_led "$boardname:amber:wlan"
18 ;;
19 3g-6200nl|\
20 skylab,skw92a|\
21 wnce2001)
22 set_wifi_led "$boardname:green:wlan"
23 ;;
24 br-6475nd|\
25 mzk-w300nh2)
26 set_wifi_led "$boardname:amber:wlan"
27 ;;
28 ai-br100)
29 ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" "eth0.2"
30 set_wifi_led "$boardname:blue:wlan"
31 ;;
32 air3gii)
33 set_wifi_led "$boardname:green:wlan"
34 ;;
35 alfa-network,ac1200rm)
36 set_wifi_led "$boardname:green:wlan2g" "wlan1"
37 ;;
38 alfa-network,awusfree1)
39 set_wifi_led "$boardname:blue:wlan"
40 ;;
41 alfa-network,tube-e4g)
42 ucidef_set_led_netdev "4g" "4g" "$boardname:green:4g" "wwan0"
43 ucidef_set_led_netdev "lan" "lan" "$boardname:blue:lan" "eth0"
44 ;;
45 all0256n-4M|\
46 all0256n-8M)
47 ucidef_set_rssimon "wlan0" "200000" "1"
48 ucidef_set_led_rssi "rssilow" "RSSILOW" "all0256n:green:rssilow" "wlan0" "1" "40" "0" "6"
49 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0256n:green:rssimed" "wlan0" "30" "80" "-29" "5"
50 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0256n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
51 set_wifi_led "rt2800pci-phy0::radio"
52 ;;
53 ar670w|\
54 ar725w|\
55 awapn2403)
56 set_wifi_led "rt2800soc-phy0::radio"
57 ;;
58 asl26555-8M|\
59 asl26555-16M)
60 ucidef_set_led_netdev "eth" "ETH" "asl26555:green:eth" "eth0"
61 set_wifi_led "asl26555:green:wlan"
62 ;;
63 bdcom,wap2100-sk|\
64 hiwifi,hc5861b)
65 set_wifi_led "$boardname:green:wlan2g"
66 ;;
67 belkin,f9k1109v1)
68 set_usb_led "$boardname:green:usb1"
69 ucidef_set_led_netdev "lan" "lan" "$boardname:blue:wps" "eth0"
70 ;;
71 broadway)
72 set_wifi_led "$boardname:red:wps_active"
73 ;;
74 c108)
75 ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"
76 ucidef_set_led_netdev "modem" "modem" "$boardname:green:modem" "wwan0"
77 ;;
78 c20i)
79 ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e"
80 ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01"
81 ucidef_set_led_wlan "wlan" "wlan" "$boardname:blue:wlan" "phy0radio"
82 ;;
83 c50)
84 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
85 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
86 ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" wlan1
87 set_wifi_led "$boardname:green:wlan5g"
88 ;;
89 cf-wr800n)
90 ucidef_set_led_netdev "lan" "lan" "$boardname:white:ethernet" eth0.1
91 set_wifi_led "$boardname:white:wifi"
92 ;;
93 d240)
94 set_wifi_led "$boardname:blue:wifi"
95 ;;
96 dcs-930l-b1)
97 ucidef_set_led_netdev "wifi" "WiFi" "$boardname:blue:wps"
98 ;;
99 dir-300-b1|\
100 dir-600-b1|\
101 dir-620-a1)
102 set_wifi_led "rt2800pci-phy0::radio"
103 ;;
104 dir-300-b7|\
105 dir-320-b1|\
106 dir-610-a1|\
107 esr-9753|\
108 hlk-rm04|\
109 sl-r7205|\
110 v11st-fe|\
111 w306r-v20|\
112 wt1520-4M|\
113 wt1520-8M)
114 set_wifi_led "rt2800pci-phy0::radio"
115 ;;
116 dir-615-d|\
117 dir-615-h1)
118 set_wifi_led "rt2800pci-phy0::radio"
119 ;;
120 dir-620-d1|\
121 dlink,dwr-116-a1|\
122 mzk-ex300np)
123 set_wifi_led "$boardname:green:wifi"
124 ;;
125 dlink,dwr-118-a1)
126 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1f"
127 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x20"
128 set_wifi_led "$boardname:green:wlan2g" "wlan1"
129 ;;
130 dlink,dwr-118-a2)
131 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0e"
132 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
133 set_wifi_led "$boardname:green:wlan2g" "wlan1"
134 ;;
135 dlink,dwr-921-c1|\
136 dlink,dwr-922-e2)
137 set_wifi_led "$boardname:green:wifi"
138 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f"
139 ucidef_set_led_netdev "signalstrength" "signalstrength" "$boardname:green:sigstrength" "wwan0" "link"
140 ucidef_set_led_netdev "4g" "4g" "$boardname:green:4g" "wwan0" "tx rx"
141 ;;
142 dir-860l-b1)
143 ucidef_set_led_netdev "wan" "wan" "$boardname:green:net" "eth0.2"
144 ;;
145 edimax,br-6478ac-v2)
146 set_wifi_led "$boardname:blue:wlan"
147 ;;
148 ex2700|\
149 wn3000rpv3)
150 set_wifi_led "$boardname:green:router"
151 ;;
152 ex3700)
153 ucidef_set_led_netdev "wlan5g" "ROUTER (green)" "$boardname:green:router" "wlan0"
154 ucidef_set_led_netdev "wlan2g" "DEVICE (green)" "$boardname:green:device" "wlan1"
155 ;;
156 f5d8235-v1)
157 set_wifi_led "$boardname:blue:wireless"
158 ;;
159 fonera20n)
160 set_wifi_led "$boardname:orange:wifi"
161 ;;
162 gnubee,gb-pc1|\
163 gnubee,gb-pc2)
164 ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x01"
165 ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x10"
166 ;;
167 gl-mt300a|\
168 gl-mt300n|\
169 gl-mt750)
170 set_wifi_led "$boardname:wlan"
171 ;;
172 gl-mt300n-v2)
173 set_wifi_led "$boardname:red:wlan"
174 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x1"
175 ;;
176 hc5661|\
177 hc5661a)
178 ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
179 set_wifi_led "$boardname:blue:wlan2g"
180 ;;
181 hc5761|\
182 hc5861)
183 ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
184 ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "wlan0"
185 ucidef_set_led_netdev "wifi2g" "wifi2g" "$boardname:blue:wlan2g" "wlan1"
186 ;;
187 hg255d)
188 set_wifi_led "$boardname:green:wlan"
189 ucidef_set_led_netdev "internet" "internet" "$boardname:green:internet" "eth0.2"
190 ;;
191 hpm)
192 ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
193 set_wifi_led "$boardname:green:wifi"
194 ;;
195 ht-tm02)
196 ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:lan" "eth0"
197 set_wifi_led "$boardname:blue:wlan"
198 ;;
199 iodata,wn-ac1167gr)
200 ucidef_set_led_wlan "wlan5g" "WLAN5G" "$boardname:green:wlan5g" "phy0radio"
201 ucidef_set_led_wlan "wlan2g" "WLAN2G" "$boardname:green:wlan2g" "phy1radio"
202 ;;
203 kimax,u35wf)
204 set_wifi_led "$boardname:blue:wifi"
205 ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
206 ;;
207 kn|\
208 nbg-419n2)
209 set_wifi_led "rt2800pci-phy0::radio"
210 ;;
211 kn_rc|\
212 kn_rf|\
213 kng_rc)
214 set_wifi_led "$boardname:green:wifi"
215 ;;
216 lava,lr-25g001)
217 ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "wlan1"
218 ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:green:wlan5g" "wlan0"
219 ;;
220 linkits7688)
221 ucidef_set_led_wlan "wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt"
222 ;;
223 m2m)
224 set_wifi_led "$boardname:blue:wifi"
225 ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:wan" "eth0"
226 ;;
227 mikrotik,rbm11g)
228 ucidef_set_rssimon "wlan0" "200000" "1"
229 ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:green:rssi0" "wlan0" "1" "100"
230 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:green:rssi1" "wlan0" "20" "100"
231 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssi2" "wlan0" "40" "100"
232 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssi3" "wlan0" "60" "100"
233 ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "$boardname:green:rssi4" "wlan0" "80" "100"
234 ;;
235 miniembplug)
236 set_wifi_led "$boardname:red:wlan"
237 ;;
238 xiaomi,mir3p)
239 ucidef_set_led_switch "wan-amber" "WAN (amber)" "$boardname:amber:wan" "switch0" "0x10" "0x08"
240 ucidef_set_led_switch "lan1-amber" "LAN1 (amber)" "$boardname:amber:lan1" "switch0" "0x02" "0x08"
241 ucidef_set_led_switch "lan2-amber" "LAN2 (amber)" "$boardname:amber:lan2" "switch0" "0x04" "0x08"
242 ucidef_set_led_switch "lan3-amber" "LAN3 (amber)" "$boardname:amber:lan3" "switch0" "0x08" "0x08"
243 ;;
244 mir3g)
245 ucidef_set_led_switch "wan-amber" "WAN (amber)" "$boardname:amber:wan" "switch0" "0x02" "0x08"
246 ucidef_set_led_switch "lan1-amber" "LAN1 (amber)" "$boardname:amber:lan1" "switch0" "0x08" "0x08"
247 ucidef_set_led_switch "lan2-amber" "LAN2 (amber)" "$boardname:amber:lan2" "switch0" "0x04" "0x08"
248 ;;
249 mlw221|\
250 mlwg2)
251 set_wifi_led "$boardname:blue:wifi"
252 ;;
253 mr-102n)
254 set_wifi_led "$boardname:green:wlan"
255 ;;
256 mr200)
257 ucidef_set_led_netdev "lan" "lan" "$boardname:white:lan" "eth0.1"
258 ucidef_set_led_netdev "wan" "wan" "$boardname:white:wan" "usb0"
259 set_wifi_led "$boardname:white:wlan"
260 ;;
261 mtc,wr1201)
262 ucidef_set_led_switch "eth_link" "LAN link" "$boardname:green:eth_link" "switch0" "0x0f"
263 ;;
264 mzk-ex750np)
265 set_wifi_led "$boardname:red:wifi"
266 ;;
267 netgear,r6120)
268 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f"
269 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
270 ucidef_set_led_wlan "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "phy0tpt"
271 ;;
272 oy-0001)
273 set_wifi_led "$boardname:green:wifi"
274 ;;
275 gehua,ghl-r-001|\
276 pbr-m1)
277 ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
278 ;;
279 d-team,newifi-d2)
280 ucidef_set_led_switch "internet" "internet" "$boardname:amber:internet" "switch0" "0x10"
281 ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:blue:wlan2g" "wlan0"
282 ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:blue:wlan5g" "wlan1"
283 ;;
284 psg1208)
285 set_wifi_led "$boardname:white:wlan2g"
286 ;;
287 px-4885-4M|\
288 px-4885-8M)
289 set_wifi_led "px-4885:orange:wifi"
290 ;;
291 r6220|\
292 netgear,r6350)
293 ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2
294 set_wifi_led "$boardname:green:wifi"
295 ;;
296 re350-v1)
297 ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0"
298 ucidef_set_led_netdev "wifi5g" "Wifi 5G" "$boardname:blue:wifi5G" "wlan1"
299 ucidef_set_led_netdev "eth_act" "LAN act" "$boardname:green:eth_act" "eth0" "tx rx"
300 ucidef_set_led_switch "eth_link" "LAN link" "$boardname:green:eth_link" "switch0" "0x01"
301 ;;
302 rp-n53)
303 ucidef_set_led_netdev "eth" "Network" "$boardname:white:back" "eth0"
304 set_wifi_led "$boardname:blue:wifi"
305 ;;
306 rt-ac51u)
307 set_wifi_led "$boardname:blue:wifi"
308 ;;
309 rt-n12p)
310 ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0.1
311 ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2
312 set_wifi_led "$boardname:green:air"
313 ;;
314 rt-n14u)
315 ucidef_set_led_netdev "lan" "lan" "$boardname:blue:lan" eth0.1
316 ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" eth0.2
317 set_wifi_led "$boardname:blue:air"
318 ;;
319 tama,w06)
320 ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
321 ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
322 ;;
323 tew-714tru)
324 set_wifi_led "$boardname:green:wifi"
325 ;;
326 tiny-ac)
327 set_wifi_led "$boardname:orange:wifi"
328 ;;
329 tl-wr840n-v4)
330 ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
331 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
332 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
333 ;;
334 tl-wr841n-v13)
335 ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
336 ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x2"
337 ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x4"
338 ucidef_set_led_switch "lan3" "lan3" "$boardname:green:lan3" "switch0" "0x8"
339 ucidef_set_led_switch "lan4" "lan4" "$boardname:green:lan4" "switch0" "0x10"
340 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
341 ;;
342 tplink,c2-v1)
343 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch1" "0x1e"
344 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch1" "0x01"
345 set_wifi_led "$boardname:green:wlan"
346 ;;
347 tplink,c20-v1)
348 ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e"
349 ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01"
350 ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:blue:wlan2g" "wlan0"
351 ;;
352 tplink,c20-v4)
353 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
354 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
355 ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" "wlan0"
356 ;;
357 tplink,c50-v3|\
358 tplink,c50-v4)
359 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
360 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
361 ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan2g" "phy0tpt"
362 ucidef_set_led_wlan "wlan5g" "wlan5g" "$boardname:green:wlan5g" "phy1tpt"
363 ;;
364 tplink,tl-wa801nd-v5)
365 ucidef_set_led_wlan "wlan" "wlan" "$boardname:green:wlan" "phy0tpt"
366 ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"
367 ;;
368 tplink,tl-mr3020-v3)
369 set_wifi_led "$boardname:green:wlan"
370 ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
371 ;;
372 tplink,tl-mr3420-v5|\
373 tplink,tl-wr842n-v5)
374 ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
375 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
376 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
377 ;;
378 tplink,tl-wr902ac-v3)
379 ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
380 ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x10"
381 ;;
382 u25awf-h1)
383 set_wifi_led "u25awf:red:wifi"
384 ucidef_set_led_netdev "eth" "eth" "u25awf:green:lan" "eth0"
385 ;;
386 u7628-01-128M-16M)
387 ucidef_set_led_switch "lan1" "lan1" "u7628-01:green:lan1" "switch0" "0x2"
388 ucidef_set_led_switch "lan2" "lan2" "u7628-01:green:lan2" "switch0" "0x4"
389 ucidef_set_led_switch "lan3" "lan3" "u7628-01:green:lan3" "switch0" "0x8"
390 ucidef_set_led_switch "lan4" "lan4" "u7628-01:green:lan4" "switch0" "0x10"
391 ucidef_set_led_switch "wan" "wan" "u7628-01:green:wan" "switch0" "0x01"
392 set_wifi_led "u7628-01:green:wlan"
393 ;;
394 vocore-8M|\
395 vocore-16M)
396 ucidef_set_led_netdev "eth" "ETH" "vocore:orange:eth" "eth0"
397 ;;
398 w502u)
399 set_wifi_led "rt2800pci-phy0::radio"
400 ;;
401 wavlink,wl-wn570ha1)
402 ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
403 ucidef_set_rssimon "wlan0" "200000" "1"
404 ucidef_set_led_rssi "wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan0" "1" "49"
405 ucidef_set_led_rssi "wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan0" "50" "84"
406 ucidef_set_led_rssi "wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan0" "85" "100"
407 set_wifi_led "$boardname:green:wifi"
408 ;;
409 wavlink,wl-wn575a3)
410 ucidef_set_rssimon "wlan1" "200000" "1"
411 ucidef_set_led_rssi "wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan1" "1" "49"
412 ucidef_set_led_rssi "wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan1" "50" "84"
413 ucidef_set_led_rssi "wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan1" "85" "100"
414 ;;
415 we1026-5g-16m)
416 ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0"
417 set_wifi_led "we1026-5g:green:wifi"
418 ;;
419 wrh-300cr)
420 set_wifi_led "$boardname:green:wlan"
421 ucidef_set_led_netdev "lan" "lan" "$boardname:green:ethernet" "eth0"
422 ;;
423 xzwifi,creativebox-v1)
424 ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x10"
425 ;;
426 y1)
427 ucidef_set_led_netdev "wifi" "WIFI" "$boardname:blue:wifi" "wlan1"
428 ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi5g" "wlan0"
429 ucidef_set_led_switch "lan" "LAN" "$boardname:blue:lan" "switch0" "0x03"
430 ;;
431 y1s)
432 ucidef_set_led_netdev "wifi" "WIFI" "$boardname:yellow:wifi" "wlan1"
433 ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi" "wlan0"
434 ucidef_set_led_netdev "wan" "WAN" "$boardname:blue:internet" "eth0.2" "tx rx"
435 ;;
436 youhua,wr1200js)
437 ucidef_set_led_switch "internet" "INTERNET" "$boardname:green:wan" "switch0" "0x01"
438 ;;
439 zbt-ape522ii)
440 ucidef_set_led_netdev "wlan2g4" "wlan1-link" "$boardname:green:wlan2g4" "wlan1"
441 ucidef_set_led_netdev "sys1" "wlan1" "$boardname:green:sys1" "wlan1" "tx rx"
442 ucidef_set_led_netdev "sys2" "wlan0" "$boardname:green:sys2" "wlan0" "tx rx"
443 ;;
444 zbt-wa05)
445 set_wifi_led "$boardname:blue:air"
446 ;;
447 zbt-we2026)
448 set_wifi_led "$boardname:green:wlan"
449 ;;
450 zbt-we826-16M|\
451 zbt-we826-32M)
452 set_wifi_led "zbt-we826:green:wifi"
453 ;;
454 zbtlink,zbt-we1226)
455 set_wifi_led "$boardname:green:wlan"
456 ucidef_set_led_switch "lan1" "LAN1" "$boardname:green:lan1" "switch0" "0x01"
457 ucidef_set_led_switch "lan2" "LAN2" "$boardname:green:lan2" "switch0" "0x02"
458 ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x10"
459 ;;
460 zbt-wr8305rt)
461 set_wifi_led "$boardname:green:wifi"
462 ;;
463 zorlik,zl5900v2)
464 ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0
465 ;;
466 zyxel,keenetic-extra-ii)
467 set_wifi_led "$boardname:green:wifi"
468 ucidef_set_led_switch "internet" "internet" "$boardname:green:internet" "switch0" "0x01"
469 ;;
470 youku-yk1)
471 set_wifi_led "$boardname:blue:air"
472 ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10"
473 ;;
474 esac
475
476 board_config_flush
477
478 exit 0