ralink: renable nand support
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / board.d / 01_leds
1 #!/bin/sh
2 #
3 # Copyright (C) 2011-2015 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults-new.sh
7 . /lib/ar71xx.sh
8
9 board_config_update
10
11 board=$(ar71xx_board_name)
12
13 case "$board" in
14 airgateway | \
15 airgatewaypro)
16 ucidef_set_led_wlan "wlan" "WLAN" "ubnt:blue:wlan" "phy0tpt"
17 ;;
18 alfa-nx)
19 ucidef_set_led_netdev "wan" "WAN" "alfa:green:led_2" "eth0"
20 ucidef_set_led_netdev "lan" "LAN" "alfa:green:led_3" "eth1"
21 ;;
22
23 all0258n)
24 ucidef_set_rssimon "wlan0" "40000" "1"
25 ucidef_set_led_rssi "rssilow" "RSSILOW" "all0258n:red:rssilow" "wlan0" "1" "40" "0" "6"
26 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0258n:yellow:rssimedium" "wlan0" "30" "80" "-29" "5"
27 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0258n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
28 ;;
29
30 all0315n)
31 ucidef_set_rssimon "wlan0" "40000" "1"
32 ucidef_set_led_rssi "rssilow" "RSSILOW" "all0315n:red:rssilow" "wlan0" "1" "40" "0" "6"
33 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0315n:yellow:rssimedium" "wlan0" "30" "80" "-29" "5"
34 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0315n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
35 ;;
36
37 antminer-s1)
38 ucidef_set_led_default "sys" "SYS" "antminer-s1:green:sys" "0"
39 ucidef_set_led_wlan "wlan" "WLAN" "antminer-s1:green:wlan" "phy0tpt"
40 ;;
41
42 antminer-s3)
43 ucidef_set_led_wlan "wlan" "WLAN" "antminer-s3:green:wlan" "phy0tpt"
44 ucidef_set_led_default "sys" "SYS" "antminer-s3:green:sys" "0"
45 ucidef_set_led_default "lan" "LAN" "antminer-s3:yellow:lan" "0"
46 ;;
47
48 arduino-yun)
49 ucidef_set_led_wlan "wlan" "WLAN" "arduino:blue:wlan" "phy0tpt"
50 ucidef_set_led_usbdev "usb" "USB" "arduino:white:usb" "1-1.1"
51 ;;
52
53 ap113)
54 ucidef_set_led_usbdev "usb" "USB" "ap113:green:usb" "1-1"
55 ;;
56
57 ap147-010)
58 ucidef_set_led_netdev "wan" "WAN" "ap147:green:wan" "eth1"
59 ucidef_set_led_switch "lan1" "LAN1" "ap147:green:lan1" "switch0" "0x10"
60 ucidef_set_led_switch "lan2" "LAN2" "ap147:green:lan2" "switch0" "0x08"
61 ucidef_set_led_switch "lan3" "LAN3" "ap147:green:lan3" "switch0" "0x04"
62 ucidef_set_led_switch "lan4" "LAN4" "ap147:green:lan4" "switch0" "0x02"
63 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "ap147:green:wlan-2g" "phy0tpt"
64 ;;
65
66 bsb)
67 ucidef_set_led_default "sys" "SYS" "bsb:red:sys" "1"
68 ;;
69
70 bullet-m | \
71 nanostation-m | \
72 rocket-m | \
73 rocket-m-xw | \
74 nanostation-m-xw | \
75 loco-m-xw)
76 ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100" "0" "13"
77 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:orange:link2" "wlan0" "26" "100" "-25" "13"
78 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
79 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
80 ;;
81
82 rocket-m-ti)
83 ucidef_set_led_rssi "rssiverylow" "RSSIVERYLOW" "ubnt:green:link1" "wlan0" "1" "100" "0" "13"
84 ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:green:link2" "wlan0" "26" "100" "-25" "13"
85 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
86 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
87 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link5" "wlan0" "76" "100" "-75" "13"
88 ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
89 ;;
90
91 bxu2000n-2-a1)
92 ucidef_set_led_wlan "wlan" "WLAN" "bhu:green:wlan" "phy0tpt"
93 ;;
94
95 cap4200ag)
96 ucidef_set_led_default "lan_green" "LAN_GREEN" "senao:green:lan" "1"
97 ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "senao:amber:wlan" "phy0tpt"
98 ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "senao:green:wlan" "phy1tpt"
99 ;;
100
101 carambola2)
102 ucidef_set_led_netdev "lan" "LAN" "carambola2:orange:eth0" "eth0"
103 ucidef_set_led_netdev "wan" "WAN" "carambola2:orange:eth1" "eth1"
104 ucidef_set_led_wlan "wlan" "WLAN" "carambola2:green:wlan" "phy0tpt"
105 ;;
106
107 cf-e316n-v2)
108 ucidef_set_led_netdev "lan" "LAN" "$board:blue:lan" "eth0"
109 ucidef_set_led_netdev "wan" "WAN" "$board:blue:wan" "eth1"
110 ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
111 ;;
112
113 cpe510)
114 ucidef_set_led_switch "lan0" "LAN0" "tp-link:green:lan0" "switch0" "0x20"
115 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
116 ucidef_set_rssimon "wlan0" "40000" "1"
117 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:link1" "wlan0" "1" "100" "0" "13"
118 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:link2" "wlan0" "26" "100" "-25" "13"
119 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "51" "100" "-50" "13"
120 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "76" "100" "-75" "13"
121 ;;
122
123 db120)
124 ucidef_set_led_usbdev "usb" "USB" "db120:green:usb" "1-1"
125 ;;
126
127 dragino2)
128 ucidef_set_led_wlan "wlan" "WLAN" "dragino2:red:wlan" "phy0tpt"
129 ucidef_set_led_netdev "lan" "LAN" "dragino2:red:lan" "eth0"
130 ucidef_set_led_netdev "wan" "WAN" "dragino2:red:wan" "eth1"
131 ;;
132
133 eap300v2)
134 ucidef_set_led_netdev "lan" "LAN" "engenius:blue:lan" "eth0"
135 ucidef_set_led_wlan "wlan" "WLAN" "engenius:blue:wlan" "phy0tpt"
136 ;;
137
138 f9k1115v2)
139 ucidef_set_led_usbdev "usb2" "USB2" "belkin:green:usb2" "1-1"
140 ;;
141
142 rb-750)
143 ucidef_set_led_default "act" "act" "rb750:green:act" "1"
144 ucidef_set_led_netdev "port1" "port1" "rb750:green:port1" "eth1"
145 ucidef_set_led_switch "port2" "port2" "rb750:green:port2" "switch0" "0x10"
146 ucidef_set_led_switch "port3" "port3" "rb750:green:port3" "switch0" "0x08"
147 ucidef_set_led_switch "port4" "port4" "rb750:green:port4" "switch0" "0x04"
148 ucidef_set_led_switch "port5" "port5" "rb750:green:port5" "switch0" "0x02"
149 ;;
150
151 rb-2011l|\
152 rb-2011uas|\
153 rb-2011uias|\
154 rb-2011uas-2hnd|\
155 rb-2011uias-2hnd)
156 ucidef_set_led_switch "eth6" "ETH6" "rb:green:eth6" "switch1" "0x20"
157 ucidef_set_led_switch "eth7" "ETH7" "rb:green:eth7" "switch1" "0x10"
158 ucidef_set_led_switch "eth8" "ETH8" "rb:green:eth8" "switch1" "0x08"
159 ucidef_set_led_switch "eth9" "ETH9" "rb:green:eth9" "switch1" "0x04"
160 ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
161 ;;
162
163 dhp-1565-a1)
164 ucidef_set_led_switch "wan" "WAN" "d-link:green:planet" "switch0" "0x20"
165 ;;
166
167 dir-505-a1)
168 ucidef_set_led_netdev "lan" "LAN" "d-link:green:power" "eth1"
169 ;;
170
171 dir-600-a1|\
172 dir-615-e1|\
173 dir-615-e4)
174 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
175 ucidef_set_led_switch "lan1" "LAN1" "d-link:green:lan1" "switch0" "0x02"
176 ucidef_set_led_switch "lan2" "LAN2" "d-link:green:lan2" "switch0" "0x04"
177 ucidef_set_led_switch "lan3" "LAN3" "d-link:green:lan3" "switch0" "0x08"
178 ucidef_set_led_switch "lan4" "LAN4" "d-link:green:lan4" "switch0" "0x10"
179 ;;
180
181 dir-615-c1)
182 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
183 ucidef_set_led_wlan "wlan" "WLAN" "d-link:green:wlan" "phy0tpt"
184 ;;
185
186 dir-825-b1)
187 ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1"
188 ;;
189
190 dir-615-i1)
191 ucidef_set_led_default "power" "POWER" "d-link:green:power" "1"
192 ucidef_set_led_default "diag" "DIAG" "d-link:amber:power" "0"
193 ucidef_set_led_default "wps" "WPS" "d-link:blue:wps" "0"
194 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth0"
195 ucidef_set_led_wlan "wlan" "WLAN" "d-link:green:wlan" "phy0tpt"
196 ;;
197
198 dir-825-c1)
199 ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1"
200 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:blue:wlan2g" "phy0tpt"
201 ;;
202
203 dlan-hotspot)
204 ucidef_set_led_wlan "wlan" "WLAN" "devolo:green:wifi" "phy0tpt"
205 ;;
206
207 dlan-pro-500-wp)
208 ucidef_set_led_default "power" "System Power" "devolo:green:status" "1"
209 ucidef_set_led_netdev "lan" "Ethernet Activity" "devolo:green:eth" "br-lan"
210 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "devolo:green:wlan-2g" "phy0tpt"
211 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "devolo:blue:wlan-5g" "none"
212 ;;
213
214 dlan-pro-1200-ac)
215 ucidef_set_led_wlan "wlan" "WLAN" "devolo:status:wlan" "phy0radio"
216 ucidef_set_led_trigger_gpio "plcw" "dLAN" "devolo:status:dlan" "17" "0"
217 ucidef_set_led_trigger_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0"
218 ;;
219
220 gl-ar150)
221 ucidef_set_led_wlan "wlan" "WLAN" "gl_ar150:wlan" "phy0tpt"
222 ;;
223
224 gl-ar300)
225 ucidef_set_led_wlan "wlan" "WLAN" "gl_ar300:wlan" "phy0tpt"
226 ;;
227
228 gl-domino)
229 ucidef_set_led_wlan "wlan" "WLAN" "domino:blue:wlan" "phy0tpt"
230 ;;
231
232 gl-inet)
233 ucidef_set_led_netdev "lan" "LAN" "gl-connect:green:lan" "eth1"
234 ucidef_set_led_wlan "wlan" "WLAN" "gl-connect:red:wlan" "phy0tpt"
235 ;;
236
237 esr900)
238 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "engenius:blue:wlan-2g" "phy0tpt"
239 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "engenius:blue:wlan-5g" "phy1tpt"
240 ;;
241
242 esr1750)
243 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "esr1750:blue:wlan-2g" "phy1tpt"
244 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "esr1750:blue:wlan-5g" "phy0tpt"
245 ;;
246
247 epg5000)
248 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "epg5000:blue:wlan-2g" "phy1tpt"
249 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "epg5000:blue:wlan-5g" "phy0tpt"
250 ;;
251
252 hiwifi-hc6361)
253 ucidef_set_led_netdev "inet" "INET" "hiwifi:blue:internet" "eth1"
254 ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt"
255 ;;
256
257 hornet-ub | \
258 hornet-ub-x2)
259 ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
260 ucidef_set_led_netdev "wan" "WAN" "alfa:blue:wan" "eth1"
261 ucidef_set_led_wlan "wlan" "WLAN" "alfa:blue:wlan" "phy0tpt"
262 ucidef_set_led_usbdev "usb" "USB" "alfa:blue:usb" "1-1"
263 ;;
264
265 mc-mac1200r)
266 ucidef_set_led_wlan "wlan2g" "WLAN2G" "mercury:green:wlan2g" "phy1tpt"
267 ucidef_set_led_wlan "wlan5g" "WLAN5G" "mercury:green:wlan5g" "phy0tpt"
268 ;;
269
270 mr12)
271 ucidef_set_led_netdev "wan" "WAN" "mr12:green:wan" "eth0"
272 ucidef_set_led_wlan "wlan1" "WLAN1" "mr12:green:wifi1" "phy0assoc"
273 ucidef_set_led_wlan "wlan2" "WLAN2" "mr12:green:wifi2" "phy0assoc"
274 ucidef_set_led_wlan "wlan3" "WLAN3" "mr12:green:wifi3" "phy0assoc"
275 ucidef_set_led_wlan "wlan4" "WLAN4" "mr12:green:wifi4" "phy0tpt"
276 ;;
277
278 mr16)
279 ucidef_set_led_netdev "wan" "WAN" "mr16:green:wan" "eth0"
280 ucidef_set_led_wlan "wlan1" "WLAN1" "mr16:green:wifi1" "phy0assoc"
281 ucidef_set_led_wlan "wlan2" "WLAN2" "mr16:green:wifi2" "phy0assoc"
282 ucidef_set_led_wlan "wlan3" "WLAN3" "mr16:green:wifi3" "phy0assoc"
283 ucidef_set_led_wlan "wlan4" "WLAN4" "mr16:green:wifi4" "phy0tpt"
284 ;;
285
286 mr600)
287 ucidef_set_led_wlan "wlan58" "WLAN58" "mr600:green:wlan58" "phy0tpt"
288 ;;
289
290 mr1750)
291 ucidef_set_led_netdev "lan" "LAN" "mr1750:blue:wan" "eth0"
292 ucidef_set_led_wlan "wlan58" "WLAN58" "mr1750:blue:wlan58" "phy0tpt"
293 ucidef_set_led_wlan "wlan24" "WLAN24" "mr1750:blue:wlan24" "phy1tpt"
294 ;;
295
296 mr900 | \
297 mr900v2)
298 ucidef_set_led_netdev "lan" "LAN" "mr900:blue:wan" "eth0"
299 ucidef_set_led_wlan "wlan24" "WLAN24" "mr900:blue:wlan24" "phy0tpt"
300 ucidef_set_led_wlan "wlan58" "WLAN58" "mr900:blue:wlan58" "phy1tpt"
301 ;;
302
303 mynet-n600)
304 ucidef_set_led_netdev "wan" "WAN" "wd:blue:internet" "eth1"
305 ucidef_set_led_switch "lan1" "LAN1" "wd:green:lan1" "switch0" "0x02"
306 ucidef_set_led_switch "lan2" "LAN2" "wd:green:lan2" "switch0" "0x10"
307 ucidef_set_led_switch "lan3" "LAN3" "wd:green:lan3" "switch0" "0x08"
308 ucidef_set_led_switch "lan4" "LAN4" "wd:green:lan4" "switch0" "0x04"
309 ;;
310
311 mynet-rext)
312 ucidef_set_led_netdev "lan" "LAN" "wd:blue:ethernet" "eth0"
313 ucidef_set_rssimon "wlan0" "40000" "1"
314 ucidef_set_led_rssi "rssilow" "RSSILOW" "wd:blue:quality1" "wlan0" "1" "40" "0" "6"
315 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "wd:blue:quality2" "wlan0" "30" "80" "-29" "5"
316 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "wd:blue:quality3" "wlan0" "70" "100" "-69" "8"
317 ucidef_set_led_wlan "wlan" "WLAN" "wd:blue:wireless" "phy0tpt"
318 ;;
319
320 mzk-w04u)
321 ucidef_set_led_usbdev "usb" "USB" "planex:green:usb" "1-1"
322 ;;
323
324 mzk-w300nh)
325 ucidef_set_led_wlan "wlan" "WLAN" "planex:green:wlan" "phy0tpt"
326 ;;
327
328 nbg460n_550n_550nh)
329 ucidef_set_led_wlan "wlan" "WLAN" "nbg460n:green:wlan" "phy0tpt"
330 ;;
331
332 nbg6616)
333 ucidef_set_led_wlan "wlan" "WLAN" "nbg6616:green:wifi2g" "phy1tpt"
334 ucidef_set_led_wlan "wlan5" "WLAN5" "nbg6616:green:wifi5g" "phy0tpt"
335 ucidef_set_led_usbdev "usb1" "USB1" "nbg6616:green:usb1" "1-1"
336 ucidef_set_led_usbdev "usb2" "USB2" "nbg6616:green:usb2" "2-1"
337 ;;
338
339 nbg6716)
340 ucidef_set_led_netdev "wan" "WAN" "nbg6716:white:internet" "eth1"
341 ucidef_set_led_wlan "wlan" "WLAN" "nbg6716:white:wifi2g" "phy1tpt"
342 ucidef_set_led_wlan "wlan5" "WLAN5" "nbg6716:white:wifi5g" "phy0tpt"
343 ucidef_set_led_usbdev "usb1" "USB1" "nbg6716:white:usb1" "1-1"
344 ucidef_set_led_usbdev "usb2" "USB2" "nbg6716:white:usb2" "2-1"
345 ;;
346
347 om2p | \
348 om2pv2 | \
349 om2p-hs | \
350 om2p-hsv2 | \
351 om2p-lc)
352 ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
353 ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
354 ;;
355
356 om5p | \
357 om5p-an)
358 ucidef_set_led_netdev "port1" "port1" "om5p:blue:wan" "eth0"
359 ucidef_set_led_netdev "port2" "port2" "om5p:blue:lan" "eth1"
360 ;;
361
362 qihoo-c301)
363 ucidef_set_led_wlan "wlan2g" "WLAN2G" "qihoo:red:status" "phy1tpt"
364 ;;
365
366 smart-300)
367 ucidef_set_led_netdev "wan" "WAN" "nc-link:green:wan" "eth0"
368 ucidef_set_led_switch "lan1" "LAN1" "nc-link:green:lan1" "switch0" "0x04"
369 ucidef_set_led_switch "lan2" "LAN2" "nc-link:green:lan2" "switch0" "0x08"
370 ucidef_set_led_switch "lan3" "LAN3" "nc-link:green:lan3" "switch0" "0x10"
371 ucidef_set_led_switch "lan4" "LAN4" "nc-link:green:lan4" "switch0" "0x02"
372 ucidef_set_led_wlan "wlan" "WLAN" "nc-link:green:wlan" "phy0tpt"
373 ;;
374
375 tew-712br)
376 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
377 ucidef_set_led_switch "lan1" "LAN1" "trendnet:green:lan1" "switch0" "0x02"
378 ucidef_set_led_switch "lan2" "LAN2" "trendnet:green:lan2" "switch0" "0x04"
379 ucidef_set_led_switch "lan3" "LAN3" "trendnet:green:lan3" "switch0" "0x08"
380 ucidef_set_led_switch "lan4" "LAN4" "trendnet:green:lan4" "switch0" "0x10"
381 ucidef_set_led_wlan "wlan" "WLAN" "trendnet:green:wlan" "phy0tpt"
382 ;;
383
384 tew-732br)
385 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
386 ;;
387
388 tl-mr11u | \
389 tl-mr3020 | \
390 tl-mr3040 | \
391 tl-mr3040-v2)
392 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
393 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
394 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
395 ;;
396
397 tl-mr3220 | \
398 tl-mr3420 )
399 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
400 ;;
401
402 tl-mr3220-v2)
403 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
404 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
405 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
406 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
407 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
408 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
409 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
410 ;;
411
412 tl-mr3420-v2)
413 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
414 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
415 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
416 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
417 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
418 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
419 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
420 ;;
421
422 tl-wa7210n-v2)
423 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
424 ucidef_set_rssimon "wlan0" "40000" "1"
425 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:signal1" "wlan0" "1" "100" "0" "13"
426 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:signal2" "wlan0" "26" "100" "-25" "13"
427 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:signal3" "wlan0" "51" "100" "-50" "13"
428 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:signal4" "wlan0" "76" "100" "-75" "13"
429 ;;
430
431 tl-wa750re)
432 ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
433 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "phy0tpt"
434 ucidef_set_rssimon "wlan0" "40000" "1"
435 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:orange:signal1" "wlan0" "1" "100" "0" "13"
436 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:orange:signal2" "wlan0" "20" "100" "-19" "13"
437 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:orange:signal3" "wlan0" "40" "100" "-39" "13"
438 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:orange:signal4" "wlan0" "60" "100" "-59" "13"
439 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:orange:signal5" "wlan0" "80" "100" "-79" "13"
440 ;;
441
442 tl-wa850re)
443 ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
444 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
445 ucidef_set_rssimon "wlan0" "40000" "1"
446 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:blue:signal1" "wlan0" "1" "100" "0" "13"
447 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:blue:signal2" "wlan0" "20" "100" "-19" "13"
448 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:blue:signal3" "wlan0" "40" "100" "-39" "13"
449 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:blue:signal4" "wlan0" "60" "100" "-59" "13"
450 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
451 ;;
452
453 tl-wa701nd-v2)
454 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
455 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
456 ;;
457
458 tl-wa860re)
459 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
460 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
461 ;;
462
463 tl-wa901nd)
464 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
465 ;;
466
467 tl-wa901nd-v2)
468 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
469 ;;
470
471 tl-wdr3320-v2)
472 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:green:wlan5g" "phy0tpt"
473 ;;
474
475 tl-wdr3500)
476 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
477 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
478 ;;
479
480 tl-wdr4300)
481 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1.1"
482 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "1-1.2"
483 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
484 ;;
485
486 tl-wdr4900-v2)
487 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
488 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
489 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
490 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy1tpt"
491 ;;
492
493 tl-wdr6500-v2)
494 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
495 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
496 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x04"
497 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
498 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
499 ;;
500
501 archer-c5|\
502 archer-c7)
503 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
504 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
505 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy1tpt"
506 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy0tpt"
507 ;;
508
509 tl-wr741nd)
510 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
511 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
512 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x04"
513 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
514 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
515 ;;
516
517 tl-wr741nd-v4)
518 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
519 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
520 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
521 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
522 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
523 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
524 ;;
525
526 tl-wr841n-v8 | \
527 tl-wr941nd-v5)
528 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
529 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
530 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
531 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
532 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
533 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
534 ;;
535
536 tl-wr941nd-v6)
537 ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0"
538 ucidef_set_led_switch "lan1" "LAN1" "tp-link:blue:lan1" "switch0" "0x10"
539 ucidef_set_led_switch "lan2" "LAN2" "tp-link:blue:lan2" "switch0" "0x08"
540 ucidef_set_led_switch "lan3" "LAN3" "tp-link:blue:lan3" "switch0" "0x04"
541 ucidef_set_led_switch "lan4" "LAN4" "tp-link:blue:lan4" "switch0" "0x02"
542 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
543 ;;
544
545 tl-wa830re-v2)
546 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
547 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
548 ;;
549
550 tl-wr841n-v9)
551 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
552 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
553 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
554 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
555 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
556 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
557 ;;
558
559 tl-wr842n-v2)
560 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
561 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
562 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
563 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
564 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
565 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
566 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
567 ;;
568
569 tl-wa801nd-v2 | \
570 tl-wa901nd-v3)
571 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
572 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
573 ;;
574
575 tl-wr941nd | \
576 tl-wr1041n-v2)
577 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
578 ;;
579
580 tl-wr1043nd | \
581 tl-wr1043nd-v2)
582 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
583 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
584 ;;
585
586 tl-wr2543n)
587 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
588 ;;
589
590 tube2h)
591 ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
592 ucidef_set_rssimon "wlan0" "40000" "1"
593 ucidef_set_led_rssi "signal1" "SIGNAL1" "alfa:red:signal1" "wlan0" "1" "100" "0" "13"
594 ucidef_set_led_rssi "signal2" "SIGNAL2" "alfa:orange:signal2" "wlan0" "26" "100" "-25" "13"
595 ucidef_set_led_rssi "signal3" "SIGNAL3" "alfa:green:signal3" "wlan0" "51" "100" "-50" "13"
596 ucidef_set_led_rssi "signal4" "SIGNAL4" "alfa:green:signal4" "wlan0" "76" "100" "-75" "13"
597 ;;
598
599 wrt160nl)
600 ucidef_set_led_wlan "wlan" "WLAN" "wrt160nl:blue:wlan" "phy0tpt"
601 ;;
602
603 wndap360)
604 ucidef_set_led_power "power" "POWER GREEN" "netgear:green:power" "1"
605 ;;
606
607 wndr3700)
608 ucidef_set_led_default "wan" "WAN LED (green)" "netgear:green:wan" "0"
609 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
610 ;;
611
612 r6100)
613 ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0"
614 ucidef_set_led_usbdev "usb" "USB" "netgear:blue:usb" "1-1"
615 ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy1tpt"
616 ;;
617
618 wndr3700v4 | \
619 wndr4300)
620 ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0.2"
621 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
622 ucidef_set_led_wlan "wlan2g" "WLAN2G" "netgear:green:wlan2g" "phy0tpt"
623 ucidef_set_led_wlan "wlan5g" "WLAN5G" "netgear:blue:wlan5g" "phy1tpt"
624 ;;
625
626 whr-g301n |\
627 whr-hp-g300n |\
628 whr-hp-gn)
629 ucidef_set_led_netdev "wan" "WAN" "buffalo:green:wan" "eth1"
630 ucidef_set_led_switch "lan1" "LAN1" "buffalo:green:lan1" "switch0" "0x02"
631 ucidef_set_led_switch "lan2" "LAN2" "buffalo:green:lan2" "switch0" "0x04"
632 ucidef_set_led_switch "lan3" "LAN3" "buffalo:green:lan3" "switch0" "0x08"
633 ucidef_set_led_switch "lan4" "LAN4" "buffalo:green:lan4" "switch0" "0x10"
634 ;;
635
636 wlae-ag300n)
637 ucidef_set_led_netdev "wireless" "WIRELESS" "buffalo:green:wireless" "wlan0"
638 ;;
639
640 wnr2000-v4)
641 ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
642 ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
643 ucidef_set_led_switch "lan1" "LAN1" "netgear:amber:lan1" "switch0" "0x02"
644 ucidef_set_led_switch "lan2" "LAN2" "netgear:amber:lan2" "switch0" "0x04"
645 ucidef_set_led_switch "lan3" "LAN3" "netgear:amber:lan3" "switch0" "0x08"
646 ucidef_set_led_switch "lan4" "LAN4" "netgear:amber:lan4" "switch0" "0x10"
647 ucidef_set_led_usbdev "usb" "USB" "netgear:amber:status" "1-1"
648 ;;
649
650 wzr-hp-ag300h)
651 ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
652 ucidef_set_led_netdev "router" "ROUTER" "buffalo:green:router" "eth1"
653 ucidef_set_led_usbdev "usb" "USB" "buffalo:green:usb" "1-1"
654 ;;
655
656 wzr-hp-g300nh)
657 ucidef_set_led_wlan "wlan" "Wireless" "buffalo:green:wireless" "phy0tpt"
658 ucidef_set_led_netdev "router" "Router" "buffalo:green:router" "eth1"
659 ucidef_set_led_usbdev "usb" "USB" "buffalo:blue:usb" "1-1"
660 ;;
661
662 zcn-1523h-2)
663 ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
664 ;;
665
666 zcn-1523h-5)
667 ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
668 ucidef_set_led_netdev "lan2" "lan2" "zcn-1523h:green:lan2" "eth1"
669 ;;
670 esac
671
672 board_config_flush
673
674 exit 0