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