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