ar71xx: provide support for RB-941-2nD via mach-rbspi.c
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / board.d / 01_leds
1 #!/bin/sh
2 #
3 # Copyright (C) 2011 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7 . /lib/ar71xx.sh
8
9 board_config_update
10
11 board=$(ar71xx_board_name)
12
13 case "$board" in
14 a40)
15 ucidef_set_led_default "status-red" "Status (red)" "a40:red:status" "0"
16 ucidef_set_led_default "status-blue" "Status (blue)" "a40:blue:status" "0"
17 ;;
18 a60)
19 ucidef_set_led_default "status-red" "Status (red)" "a60:red:status" "0"
20 ucidef_set_led_default "status-blue" "Status (blue)" "a60:blue:status" "0"
21 ;;
22 airgateway|\
23 airgatewaypro)
24 ucidef_set_led_wlan "wlan" "WLAN" "ubnt:blue:wlan" "phy0tpt"
25 ;;
26 alfa-nx)
27 ucidef_set_led_netdev "wan" "WAN" "alfa:green:led_2" "eth0"
28 ucidef_set_led_netdev "lan" "LAN" "alfa:green:led_3" "eth1"
29 ;;
30 all0258n|\
31 all0315n)
32 ucidef_set_rssimon "wlan0" "200000" "1"
33 ucidef_set_led_rssi "rssilow" "RSSILOW" "$board:red:rssilow" "wlan0" "1" "40" "0" "6"
34 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "$board:yellow:rssimedium" "wlan0" "30" "80" "-29" "5"
35 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$board:green:rssihigh" "wlan0" "70" "100" "-69" "8"
36 ;;
37 antminer-s1|\
38 antminer-s3)
39 ucidef_set_led_default "sys" "SYS" "$board:green:sys" "0"
40 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
41
42 case "$board" in
43 antminer-s3)
44 ucidef_set_led_default "lan" "LAN" "$board:yellow:lan" "0"
45 ;;
46 esac
47 ;;
48 antrouter-r1)
49 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
50 ucidef_set_led_default "btc" "BTC" "$board:green:btc" "0"
51 ;;
52 archer-c59-v1|\
53 archer-c60-v1)
54 ucidef_set_led_switch "lan" "LAN" "$board:green:lan" "switch0" "0x3C"
55 ucidef_set_led_switch "wan" "WAN" "$board:green:wan" "switch0" "0x02"
56 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan2g" "phy1tpt"
57 ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt"
58
59 case "$board" in
60 archer-c59-v1)
61 ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
62 ;;
63 esac
64 ;;
65 arduino-yun)
66 ucidef_set_led_wlan "wlan" "WLAN" "arduino:blue:wlan" "phy0tpt"
67 ucidef_set_led_usbdev "usb" "USB" "arduino:white:usb" "1-1.1"
68 ;;
69 db120)
70 ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
71 ;;
72 ap147-010)
73 ucidef_set_led_netdev "wan" "WAN" "ap147:green:wan" "eth1"
74 ucidef_set_led_switch "lan1" "LAN1" "ap147:green:lan1" "switch0" "0x10"
75 ucidef_set_led_switch "lan2" "LAN2" "ap147:green:lan2" "switch0" "0x08"
76 ucidef_set_led_switch "lan3" "LAN3" "ap147:green:lan3" "switch0" "0x04"
77 ucidef_set_led_switch "lan4" "LAN4" "ap147:green:lan4" "switch0" "0x02"
78 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "ap147:green:wlan-2g" "phy0tpt"
79 ;;
80 ap90q|\
81 cpe830|\
82 cpe870|\
83 dr531)
84 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
85 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
86
87 case "$board" in
88 ap90q)
89 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
90 ;;
91 cpe830|\
92 cpe870)
93 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
94 ucidef_set_rssimon "wlan0" "200000" "1"
95 ucidef_set_led_rssi "rssilow" "RSSILOW" "$board:green:link1" "wlan0" "1" "100" "0" "13"
96 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$board:green:link2" "wlan0" "26" "100" "-25" "13"
97 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$board:green:link3" "wlan0" "51" "100" "-50" "13"
98 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$board:green:link4" "wlan0" "76" "100" "-75" "13"
99 ;;
100 esac
101 ;;
102 bhr-4grv2)
103 ucidef_set_led_default "power" "POWER" "buffalo:green:power" "1"
104 ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
105 ;;
106 bsb)
107 ucidef_set_led_default "sys" "SYS" "$board:red:sys" "1"
108 ;;
109 bullet-m|\
110 nanostation-m|\
111 rocket-m|\
112 rocket-m-xw|\
113 nanostation-m-xw|\
114 loco-m-xw)
115 ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100" "0" "13"
116 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:orange:link2" "wlan0" "26" "100" "-25" "13"
117 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
118 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
119 ;;
120 rocket-m-ti)
121 ucidef_set_led_rssi "rssiverylow" "RSSIVERYLOW" "ubnt:green:link1" "wlan0" "1" "100" "0" "13"
122 ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:green:link2" "wlan0" "26" "100" "-25" "13"
123 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
124 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
125 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link5" "wlan0" "76" "100" "-75" "13"
126 ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
127 ;;
128 bxu2000n-2-a1)
129 ucidef_set_led_wlan "wlan" "WLAN" "bhu:green:wlan" "phy0tpt"
130 ;;
131 cap324)
132 ucidef_set_led_netdev "lan" "LAN" "pcs:green:lan" "eth0"
133 ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "pcs:amber:wlan" "phy0tpt"
134 ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "pcs:green:wlan" "phy1tpt"
135 ;;
136 c-55)
137 ucidef_set_led_netdev "lan_green" "LAN_GREEN" "$board:green:lan" "eth0"
138 ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "$board:amber:wlan" "phy0tpt"
139 ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "$board:green:wlan" "phy1tpt"
140 ;;
141 c-60)
142 ucidef_set_led_wlan "wlan1_green" "WLAN1_GREEN" "$board:green:wlan1" "phy0tpt"
143 ucidef_set_led_wlan "wlan2_green" "WLAN2_GREEN" "$board:green:wlan2" "phy1tpt"
144 ;;
145 cap4200ag)
146 ucidef_set_led_default "lan_green" "LAN_GREEN" "senao:green:lan" "1"
147 ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "senao:amber:wlan" "phy0tpt"
148 ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "senao:green:wlan" "phy1tpt"
149 ;;
150 carambola2)
151 ucidef_set_led_netdev "lan" "LAN" "$board:orange:eth0" "eth0"
152 ucidef_set_led_netdev "wan" "WAN" "$board:orange:eth1" "eth1"
153 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
154 ;;
155 cf-e316n-v2)
156 ucidef_set_led_netdev "lan" "LAN" "$board:blue:lan" "eth0"
157 ucidef_set_led_netdev "wan" "WAN" "$board:blue:wan" "eth1"
158 ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
159 ;;
160 cf-e320n-v2)
161 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
162 ucidef_set_led_netdev "wan" "WAN" "$board:red:wan" "eth1"
163 ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
164 ;;
165 cf-e380ac-v1|\
166 cf-e380ac-v2)
167 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
168 ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:blue:wlan2g" "phy1tpt"
169 ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:red:wlan5g" "phy0tpt"
170 ;;
171 cf-e520n|\
172 cf-e530n)
173 ucidef_set_led_netdev "wan" "WAN" "$board:blue:wan" "eth1"
174 ;;
175 cpe210|\
176 cpe510|\
177 wbs210|\
178 wbs510)
179 ucidef_set_led_switch "lan0" "LAN0" "tp-link:green:lan0" "switch0" "0x20"
180 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
181 ucidef_set_rssimon "wlan0" "200000" "1"
182 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:link1" "wlan0" "1" "100" "0" "13"
183 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:link2" "wlan0" "26" "100" "-25" "13"
184 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "51" "100" "-50" "13"
185 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "76" "100" "-75" "13"
186 ;;
187 cr3000)
188 ucidef_set_led_netdev "wan" "WAN" "pcs:blue:wan" "eth1"
189 ucidef_set_led_switch "lan1" "LAN1" "pcs:blue:lan1" "switch0" "0x04"
190 ucidef_set_led_switch "lan2" "LAN2" "pcs:blue:lan2" "switch0" "0x08"
191 ucidef_set_led_switch "lan3" "LAN3" "pcs:blue:lan3" "switch0" "0x10"
192 ucidef_set_led_switch "lan4" "LAN4" "pcs:blue:lan4" "switch0" "0x02"
193 ucidef_set_led_wlan "wlan" "WLAN" "pcs:blue:wlan" "phy0tpt"
194 ;;
195 cr5000)
196 ucidef_set_led_wlan "wlan" "WLAN" "pcs:blue:wlan" "phy0tpt"
197 ucidef_set_led_usbdev "usb" "USB" "pcs:white:wps" "1-1"
198 ;;
199 dragino2)
200 ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
201 ucidef_set_led_netdev "lan" "LAN" "$board:red:lan" "eth0"
202 ucidef_set_led_netdev "wan" "WAN" "$board:red:wan" "eth1"
203 ;;
204 dw33d)
205 ucidef_set_led_usbdev "mmc" "MMC" "$board:blue:mmc" "1-1"
206 ucidef_set_led_usbdev "usb" "USB" "$board:blue:usb" "2-1"
207 ucidef_set_led_netdev "internet" "INTERNET" "$board:blue:internet" "eth0"
208 ucidef_set_led_wlan "wlan2g" "WLAN-2.4G" "$board:blue:wlan-2g" "phy1tpt"
209 ;;
210 eap300v2)
211 ucidef_set_led_netdev "lan" "LAN" "engenius:blue:lan" "eth0"
212 ucidef_set_led_wlan "wlan" "WLAN" "engenius:blue:wlan" "phy0tpt"
213 ;;
214 f9k1115v2)
215 ucidef_set_led_usbdev "usb2" "USB2" "belkin:green:usb2" "1-1"
216 ;;
217 rb-750)
218 ucidef_set_led_default "act" "act" "rb750:green:act" "1"
219 ucidef_set_led_netdev "port1" "port1" "rb750:green:port1" "eth1"
220 ucidef_set_led_switch "port2" "port2" "rb750:green:port2" "switch0" "0x10"
221 ucidef_set_led_switch "port3" "port3" "rb750:green:port3" "switch0" "0x08"
222 ucidef_set_led_switch "port4" "port4" "rb750:green:port4" "switch0" "0x04"
223 ucidef_set_led_switch "port5" "port5" "rb750:green:port5" "switch0" "0x02"
224 ;;
225 rb-941-2nd)
226 ucidef_set_led_timer "user" "USR/ACT" "rb:green:user" "1000" "1000"
227 ;;
228 rb-2011l|\
229 rb-2011uas|\
230 rb-2011uias|\
231 rb-2011uas-2hnd|\
232 rb-2011uias-2hnd)
233 ucidef_set_led_switch "eth6" "ETH6" "rb:green:eth6" "switch1" "0x20"
234 ucidef_set_led_switch "eth7" "ETH7" "rb:green:eth7" "switch1" "0x10"
235 ucidef_set_led_switch "eth8" "ETH8" "rb:green:eth8" "switch1" "0x08"
236 ucidef_set_led_switch "eth9" "ETH9" "rb:green:eth9" "switch1" "0x04"
237 ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
238 ;;
239 rb-mapl-2nd)
240 ucidef_set_led_default "power" "POWER" "rb:green:power" "1"
241 ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
242 ucidef_set_led_wlan "wlan" "WLAN" "rb:green:wlan" "phy0tpt"
243 ;;
244 dap-2695-a1)
245 ucidef_set_led_default "power" "POWER" "d-link:green:power" "1"
246 ucidef_set_led_default "diag" "DIAG" "d-link:red:power" "0"
247 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:green:wlan2g" "phy1tpt"
248 ;;
249 dhp-1565-a1)
250 ucidef_set_led_switch "wan" "WAN" "d-link:green:planet" "switch0" "0x20"
251 ;;
252 dir-600-a1|\
253 dir-615-e1|\
254 dir-615-e4|\
255 ebr-2310-c1)
256 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
257 ucidef_set_led_switch "lan1" "LAN1" "d-link:green:lan1" "switch0" "0x02"
258 ucidef_set_led_switch "lan2" "LAN2" "d-link:green:lan2" "switch0" "0x04"
259 ucidef_set_led_switch "lan3" "LAN3" "d-link:green:lan3" "switch0" "0x08"
260 ucidef_set_led_switch "lan4" "LAN4" "d-link:green:lan4" "switch0" "0x10"
261 ;;
262 dir-615-c1)
263 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
264 ucidef_set_led_wlan "wlan" "WLAN" "d-link:green:wlan" "phy0tpt"
265 ;;
266 dir-825-b1|\
267 dir-825-c1)
268 ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1"
269
270 case "$board" in
271 dir-825-c1)
272 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:blue:wlan2g" "phy0tpt"
273 ;;
274 esac
275 ;;
276 dir-615-i1)
277 ucidef_set_led_default "power" "POWER" "d-link:green:power" "1"
278 ucidef_set_led_default "diag" "DIAG" "d-link:amber:power" "0"
279 ucidef_set_led_default "wps" "WPS" "d-link:blue:wps" "0"
280 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth0"
281 ucidef_set_led_wlan "wlan" "WLAN" "d-link:green:wlan" "phy0tpt"
282 ;;
283 dlan-hotspot)
284 ucidef_set_led_wlan "wlan" "WLAN" "devolo:green:wifi" "phy0tpt"
285 ;;
286 dlan-pro-500-wp)
287 ucidef_set_led_default "power" "System Power" "devolo:green:status" "1"
288 ucidef_set_led_netdev "lan" "Ethernet Activity" "devolo:green:eth" "br-lan"
289 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "devolo:green:wlan-2g" "phy0tpt"
290 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "devolo:blue:wlan-5g" "none"
291 ;;
292 dlan-pro-1200-ac)
293 ucidef_set_led_wlan "wlan" "WLAN" "devolo:status:wlan" "phy0radio"
294 ucidef_set_led_gpio "plcw" "dLAN" "devolo:status:dlan" "17" "0"
295 ucidef_set_led_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0"
296 ;;
297 gl-ar150|\
298 gl-ar300|\
299 gl-ar300m|\
300 gl-mifi)
301 ucidef_set_led_wlan "wlan" "WLAN" "$board:wlan" "phy0tpt"
302
303 case "$board" in
304 gl-mifi)
305 ucidef_set_led_netdev "wan" "WAN" "$board:wan" "eth0"
306 ucidef_set_led_netdev "lan" "LAN" "$board:lan" "eth1"
307 ucidef_set_led_netdev "3gnet" "3GNET" "$board:net" "3g-wan"
308 ;;
309 esac
310 ;;
311 gl-domino|\
312 sc300m|\
313 wrt160nl)
314 ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
315 ;;
316 gl-inet)
317 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
318 ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
319 ;;
320 esr900)
321 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "engenius:blue:wlan-2g" "phy0tpt"
322 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "engenius:blue:wlan-5g" "phy1tpt"
323 ;;
324 esr1750|\
325 epg5000)
326 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "$board:blue:wlan-2g" "phy1tpt"
327 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan-5g" "phy0tpt"
328 ;;
329 hiwifi-hc6361)
330 ucidef_set_led_netdev "inet" "INET" "hiwifi:blue:internet" "eth1"
331 ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt"
332 ;;
333 hornet-ub|\
334 hornet-ub-x2)
335 ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
336 ucidef_set_led_netdev "wan" "WAN" "alfa:blue:wan" "eth1"
337 ucidef_set_led_wlan "wlan" "WLAN" "alfa:blue:wlan" "phy0tpt"
338 ucidef_set_led_usbdev "usb" "USB" "alfa:blue:usb" "1-1"
339 ;;
340 mc-mac1200r)
341 ucidef_set_led_wlan "wlan2g" "WLAN2G" "mercury:green:wlan2g" "phy1tpt"
342 ucidef_set_led_wlan "wlan5g" "WLAN5G" "mercury:green:wlan5g" "phy0tpt"
343 ;;
344 mr12|\
345 mr16)
346 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
347 ucidef_set_led_wlan "wlan1" "WLAN1" "$board:green:wifi1" "phy0assoc"
348 ucidef_set_led_wlan "wlan2" "WLAN2" "$board:green:wifi2" "phy0assoc"
349 ucidef_set_led_wlan "wlan3" "WLAN3" "$board:green:wifi3" "phy0assoc"
350 ucidef_set_led_wlan "wlan4" "WLAN4" "$board:green:wifi4" "phy0tpt"
351 ;;
352 mr18)
353 ucidef_set_led_netdev "wlan0" "WLAN0" "$board:blue:tricolor0" "wlan0"
354 ;;
355 mr600)
356 ucidef_set_led_wlan "wlan58" "WLAN58" "$board:green:wlan58" "phy0tpt"
357 ucidef_set_led_default "wps" "WPS" "mr600:blue:wps" "0"
358 ;;
359 mr600v2)
360 ucidef_set_led_default "wlan24-red" "WLAN 2.4GHz (red)" "mr600:red:wlan24" "0"
361 ucidef_set_led_default "wlan24-yellow" "WLAN 2.4GHz (yellow)" "mr600:yellow:wlan24" "0"
362 ucidef_set_led_wlan "wlan24-green" "WLAN 4GHz (green)" "mr600:green:wlan24" "phy1tpt"
363 ucidef_set_led_default "wlan5-red" "WLAN 5GHz (red)" "mr600:red:wlan58" "0"
364 ucidef_set_led_default "wlan5-yellow" "WLAN 5GHz (yellow)" "mr600:yellow:wlan58" "0"
365 ucidef_set_led_wlan "wlan5-green" "WLAN 5GHz (green)" "mr600:green:wlan58" "phy0tpt"
366 ;;
367 mr1750|\
368 mr1750v2)
369 ucidef_set_led_netdev "lan" "LAN" "mr1750:blue:wan" "eth0"
370 ucidef_set_led_wlan "wlan58" "WLAN58" "mr1750:blue:wlan58" "phy0tpt"
371 ucidef_set_led_wlan "wlan24" "WLAN24" "mr1750:blue:wlan24" "phy1tpt"
372 ucidef_set_led_default "status-red" "Status (red)" "mr1750:red:wifi" "0"
373 ucidef_set_led_default "status-green" "Status (green)" "mr1750:green:wifi" "0"
374 ;;
375 mr900|\
376 mr900v2)
377 ucidef_set_led_netdev "lan" "LAN" "mr900:blue:wan" "eth0"
378 ucidef_set_led_wlan "wlan24" "WLAN24" "mr900:blue:wlan24" "phy0tpt"
379 ucidef_set_led_wlan "wlan58" "WLAN58" "mr900:blue:wlan58" "phy1tpt"
380 ucidef_set_led_default "status-red" "Status (red)" "mr900:red:wifi" "0"
381 ucidef_set_led_default "status-green" "Status (green)" "mr900:green:wifi" "0"
382 ;;
383 mynet-n600)
384 ucidef_set_led_netdev "wan" "WAN" "wd:blue:internet" "eth1"
385 ucidef_set_led_switch "lan1" "LAN1" "wd:green:lan1" "switch0" "0x02"
386 ucidef_set_led_switch "lan2" "LAN2" "wd:green:lan2" "switch0" "0x10"
387 ucidef_set_led_switch "lan3" "LAN3" "wd:green:lan3" "switch0" "0x08"
388 ucidef_set_led_switch "lan4" "LAN4" "wd:green:lan4" "switch0" "0x04"
389 ;;
390 mynet-rext)
391 ucidef_set_led_netdev "lan" "LAN" "wd:blue:ethernet" "eth0"
392 ucidef_set_rssimon "wlan0" "200000" "1"
393 ucidef_set_led_rssi "rssilow" "RSSILOW" "wd:blue:quality1" "wlan0" "1" "40" "0" "6"
394 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "wd:blue:quality2" "wlan0" "30" "80" "-29" "5"
395 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "wd:blue:quality3" "wlan0" "70" "100" "-69" "8"
396 ucidef_set_led_wlan "wlan" "WLAN" "wd:blue:wireless" "phy0tpt"
397 ;;
398 mzk-w04u)
399 ucidef_set_led_usbdev "usb" "USB" "planex:green:usb" "1-1"
400 ;;
401 mzk-w300nh)
402 ucidef_set_led_wlan "wlan" "WLAN" "planex:green:wlan" "phy0tpt"
403 ;;
404 nbg460n_550n_550nh)
405 ucidef_set_led_wlan "wlan" "WLAN" "nbg460n:green:wlan" "phy0tpt"
406 ;;
407 nbg6616)
408 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wifi2g" "phy1tpt"
409 ucidef_set_led_wlan "wlan5" "WLAN5" "$board:green:wifi5g" "phy0tpt"
410 ucidef_set_led_usbdev "usb1" "USB1" "$board:green:usb1" "1-1"
411 ucidef_set_led_usbdev "usb2" "USB2" "$board:green:usb2" "2-1"
412 ;;
413 nbg6716)
414 ucidef_set_led_netdev "wan" "WAN" "$board:white:internet" "eth1"
415 ucidef_set_led_wlan "wlan" "WLAN" "$board:white:wifi2g" "phy1tpt"
416 ucidef_set_led_wlan "wlan5" "WLAN5" "$board:white:wifi5g" "phy0tpt"
417 ucidef_set_led_usbdev "usb1" "USB1" "$board:white:usb1" "1-1"
418 ucidef_set_led_usbdev "usb2" "USB2" "$board:white:usb2" "2-1"
419 ;;
420 om2p|\
421 om2pv2|\
422 om2pv4|\
423 om2p-hs|\
424 om2p-hsv2|\
425 om2p-hsv3|\
426 om2p-hsv4|\
427 om2p-lc)
428 ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
429 ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
430 ucidef_set_led_default "wlan-red" "WLAN (red)" "om2p:red:wifi" "0"
431 ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om2p:yellow:wifi" "0"
432 ucidef_set_led_default "wlan-green" "WLAN (green)" "om2p:green:wifi" "0"
433 ;;
434 om5p|\
435 om5p-an)
436 ucidef_set_led_netdev "port1" "port1" "om5p:blue:wan" "eth0"
437 ucidef_set_led_netdev "port2" "port2" "om5p:blue:lan" "eth1"
438 ucidef_set_led_default "wlan-red" "WLAN (red)" "om5p:red:wifi" "0"
439 ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5p:yellow:wifi" "0"
440 ucidef_set_led_default "wlan-green" "WLAN (green)" "om5p:green:wifi" "0"
441 ;;
442 om5p-ac)
443 ucidef_set_led_netdev "port1" "port1" "om5pac:blue:lan" "eth0"
444 ucidef_set_led_netdev "port2" "port2" "om5pac:blue:wan" "eth1"
445 ucidef_set_led_default "wlan-red" "WLAN (red)" "om5pac:red:wifi" "0"
446 ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5pac:yellow:wifi" "0"
447 ucidef_set_led_default "wlan-green" "WLAN (green)" "om5pac:green:wifi" "0"
448 ;;
449 om5p-acv2)
450 ucidef_set_led_default "wlan-red" "WLAN (red)" "om5pac:red:wifi" "0"
451 ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5pac:yellow:wifi" "0"
452 ucidef_set_led_default "wlan-green" "WLAN (green)" "om5pac:green:wifi" "0"
453 ;;
454 omy-g1)
455 ucidef_set_led_wlan "wlan" "WLAN" "omy:green:wlan" "phy0tpt"
456 ucidef_set_led_netdev "wan" "WAN" "omy:green:wan" "eth0"
457 ucidef_set_led_netdev "lan" "LAN" "omy:green:lan" "eth1"
458 ;;
459 omy-x1)
460 ucidef_set_led_default "power" "POWER" "omy:green:power" "1"
461 ucidef_set_led_default "wan" "WAN" "omy:green:wan" "eth0"
462 ;;
463 pqi-air-pen)
464 ucidef_set_led_wlan "wlan" "WLAN" "pqi-air-pen:blue:wlan" "phy0tpt"
465 ucidef_set_led_default "wps" "WPS" "pqi-air-pen:blue:wps" "0"
466 ;;
467 qihoo-c301)
468 ucidef_set_led_wlan "wlan2g" "WLAN2G" "qihoo:red:status" "phy1tpt"
469 ;;
470 re450)
471 ucidef_set_led_netdev "lan_data" "LAN Data" "$board:green:lan_data" "eth0" "tx rx"
472 ucidef_set_led_netdev "lan_link" "LAN Link" "$board:green:lan_link" "eth0" "link"
473 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "$board:blue:wlan2g" "phy1tpt"
474 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan5g" "phy0tpt"
475 ;;
476 sc1750|\
477 sc450)
478 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
479 ;;
480 smart-300)
481 ucidef_set_led_netdev "wan" "WAN" "nc-link:green:wan" "eth0"
482 ucidef_set_led_switch "lan1" "LAN1" "nc-link:green:lan1" "switch0" "0x04"
483 ucidef_set_led_switch "lan2" "LAN2" "nc-link:green:lan2" "switch0" "0x08"
484 ucidef_set_led_switch "lan3" "LAN3" "nc-link:green:lan3" "switch0" "0x10"
485 ucidef_set_led_switch "lan4" "LAN4" "nc-link:green:lan4" "switch0" "0x02"
486 ucidef_set_led_wlan "wlan" "WLAN" "nc-link:green:wlan" "phy0tpt"
487 ;;
488 som9331)
489 ucidef_set_led_netdev "wan" "WAN" "$board:orange:wan" "eth1"
490 ucidef_set_led_switch "lan1" "LAN1" "$board:orange:lan1" "switch0" "0x08"
491 ucidef_set_led_switch "lan2" "LAN2" "$board:orange:lan2" "switch0" "0x02"
492 ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
493 ucidef_set_led_usbdev "usb" "USB" "$board:green:system" "1-1"
494 ;;
495 sr3200)
496 ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:green:wlan2g" "phy1tpt"
497 ;;
498 tellstick-znet-lite)
499 ucidef_set_led_netdev "lan_act" "LANACT" "tellstick:green:lan" "eth0" "tx rx"
500 ucidef_set_led_netdev "lan_link" "LANLINK" "tellstick:orange:lan" "eth0" "link"
501 ;;
502 tew-712br)
503 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
504 ucidef_set_led_switch "lan1" "LAN1" "trendnet:green:lan1" "switch0" "0x02"
505 ucidef_set_led_switch "lan2" "LAN2" "trendnet:green:lan2" "switch0" "0x04"
506 ucidef_set_led_switch "lan3" "LAN3" "trendnet:green:lan3" "switch0" "0x08"
507 ucidef_set_led_switch "lan4" "LAN4" "trendnet:green:lan4" "switch0" "0x10"
508 ucidef_set_led_wlan "wlan" "WLAN" "trendnet:green:wlan" "phy0tpt"
509 ;;
510 tew-732br)
511 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
512 ;;
513 tew-823dru)
514 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:planet" "eth0"
515 ;;
516 tl-mr11u|\
517 tl-mr3020|\
518 tl-mr3040|\
519 tl-mr3040-v2)
520 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
521 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
522 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
523 ;;
524 tl-mr3220|\
525 tl-mr3420)
526 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
527 ;;
528 tl-mr3220-v2|\
529 tl-wr741nd-v4)
530 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
531 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
532 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
533 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
534 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
535 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
536
537 case "$board" in
538 tl-mr3220-v2)
539 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
540 ;;
541 esac
542 ;;
543 tl-mr3420-v2|\
544 tl-wr841n-v8|\
545 tl-wr842n-v2|\
546 tl-wr941nd-v5)
547 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
548 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
549 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
550 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
551 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
552 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
553
554 case "$board" in
555 tl-wr842n-v2|\
556 tl-mr3420-v2)
557 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
558 ;;
559 esac
560 ;;
561 tl-wa7210n-v2)
562 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
563 ucidef_set_rssimon "wlan0" "200000" "1"
564 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:signal1" "wlan0" "1" "100" "0" "13"
565 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:signal2" "wlan0" "26" "100" "-25" "13"
566 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:signal3" "wlan0" "51" "100" "-50" "13"
567 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:signal4" "wlan0" "76" "100" "-75" "13"
568 ;;
569 tl-wa750re)
570 ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
571 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "phy0tpt"
572 ucidef_set_rssimon "wlan0" "200000" "1"
573 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:orange:signal1" "wlan0" "1" "100" "0" "13"
574 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:orange:signal2" "wlan0" "20" "100" "-19" "13"
575 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:orange:signal3" "wlan0" "40" "100" "-39" "13"
576 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:orange:signal4" "wlan0" "60" "100" "-59" "13"
577 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:orange:signal5" "wlan0" "80" "100" "-79" "13"
578 ;;
579 tl-wa801nd-v3)
580 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth1"
581 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
582 ;;
583 tl-wa850re|\
584 tl-wa850re-v2)
585 ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
586 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
587 ucidef_set_rssimon "wlan0" "200000" "1"
588 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:blue:signal1" "wlan0" "1" "100" "0" "13"
589 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:blue:signal2" "wlan0" "20" "100" "-19" "13"
590 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:blue:signal3" "wlan0" "40" "100" "-39" "13"
591 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:blue:signal4" "wlan0" "60" "100" "-59" "13"
592 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
593 ;;
594 tl-wa701nd-v2|\
595 tl-wa860re|\
596 tl-wa830re-v2|\
597 tl-wa801nd-v2|\
598 tl-wa901nd-v3|\
599 tl-wa901nd-v4)
600 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
601 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
602 ;;
603 tl-wa901nd)
604 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
605 ;;
606 tl-wa901nd-v2|\
607 tl-wr941nd|\
608 tl-wr1041n-v2)
609 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
610 ;;
611 tl-wdr3320-v2)
612 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:green:wlan5g" "phy0tpt"
613 ;;
614 tl-wdr3500)
615 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
616 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
617 ;;
618 tl-wdr4300)
619 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1.1"
620 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "1-1.2"
621 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
622 ;;
623 tl-wdr4900-v2)
624 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
625 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
626 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
627 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy1tpt"
628 ;;
629 tl-wdr6500-v2|\
630 tl-wr741nd)
631 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
632 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
633 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x04"
634 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
635 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
636 ;;
637 archer-c5|\
638 archer-c7)
639 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
640 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
641 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy1tpt"
642 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy0tpt"
643 ;;
644 tl-wpa8630)
645 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
646 ucidef_set_led_netdev "wlan" "WLAN" "$board:green:wlan" "wlan1"
647 ucidef_set_led_netdev "wlan5" "WLAN5" "$board:green:wlan5" "wlan0"
648 ;;
649 tl-wr802n-v1)
650 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:system" "phy0tpt"
651 ;;
652 tl-wr940n-v4|\
653 tl-wr941nd-v6)
654 ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0"
655 ucidef_set_led_switch "lan1" "LAN1" "tp-link:blue:lan1" "switch0" "0x10"
656 ucidef_set_led_switch "lan2" "LAN2" "tp-link:blue:lan2" "switch0" "0x08"
657 ucidef_set_led_switch "lan3" "LAN3" "tp-link:blue:lan3" "switch0" "0x04"
658 ucidef_set_led_switch "lan4" "LAN4" "tp-link:blue:lan4" "switch0" "0x02"
659 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
660 ;;
661 tl-wr841n-v9|\
662 tl-wr841n-v11|\
663 tl-wr842n-v3)
664 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
665 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
666 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
667 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
668 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
669 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
670
671 case "$board" in
672 tl-wr842n-v3)
673 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
674 ;;
675 esac
676 ;;
677 tl-wr1043nd|\
678 tl-wr1043nd-v2)
679 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
680 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
681 ;;
682 tl-wr1043nd-v4)
683 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
684 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
685 ucidef_set_led_switch "wan" "WAN" "tp-link:green:wan" "switch0" "0x20"
686 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
687 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
688 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
689 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
690 ;;
691 tl-wr2543n)
692 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
693 ;;
694 tube2h)
695 ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
696 ucidef_set_rssimon "wlan0" "200000" "1"
697 ucidef_set_led_rssi "signal1" "SIGNAL1" "alfa:red:signal1" "wlan0" "1" "100" "0" "13"
698 ucidef_set_led_rssi "signal2" "SIGNAL2" "alfa:orange:signal2" "wlan0" "26" "100" "-25" "13"
699 ucidef_set_led_rssi "signal3" "SIGNAL3" "alfa:green:signal3" "wlan0" "51" "100" "-50" "13"
700 ucidef_set_led_rssi "signal4" "SIGNAL4" "alfa:green:signal4" "wlan0" "76" "100" "-75" "13"
701 ;;
702 wndap360)
703 ucidef_set_led_power "power" "POWER GREEN" "netgear:green:power" "1"
704 ;;
705 wndr3700)
706 ucidef_set_led_default "wan" "WAN LED (green)" "netgear:green:wan" "0"
707 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
708 ;;
709 r6100)
710 ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0"
711 ucidef_set_led_usbdev "usb" "USB" "netgear:blue:usb" "1-1"
712 ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy1tpt"
713 ;;
714 wndr3700v4|\
715 wndr4300)
716 ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0.2"
717 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
718 ucidef_set_led_wlan "wlan2g" "WLAN2G" "netgear:green:wlan2g" "phy0tpt"
719 ucidef_set_led_wlan "wlan5g" "WLAN5G" "netgear:blue:wlan5g" "phy1tpt"
720 ;;
721 whr-g301n|\
722 whr-hp-g300n|\
723 whr-hp-gn)
724 ucidef_set_led_netdev "wan" "WAN" "buffalo:green:wan" "eth1"
725 ucidef_set_led_switch "lan1" "LAN1" "buffalo:green:lan1" "switch0" "0x02"
726 ucidef_set_led_switch "lan2" "LAN2" "buffalo:green:lan2" "switch0" "0x04"
727 ucidef_set_led_switch "lan3" "LAN3" "buffalo:green:lan3" "switch0" "0x08"
728 ucidef_set_led_switch "lan4" "LAN4" "buffalo:green:lan4" "switch0" "0x10"
729 ;;
730 wlae-ag300n)
731 ucidef_set_led_netdev "wireless" "WIRELESS" "buffalo:green:wireless" "wlan0"
732 ;;
733 wnr1000-v2|\
734 wnr2000-v3)
735 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
736 ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
737 ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
738 ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" "0x04"
739 ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" "0x04"
740 ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" "0x04"
741 ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" "0x04"
742 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02" "0x02"
743 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04" "0x02"
744 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08" "0x02"
745 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
746 ;;
747 wnr2000-v4)
748 ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
749 ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
750 ucidef_set_led_switch "lan1" "LAN1" "netgear:amber:lan1" "switch0" "0x02"
751 ucidef_set_led_switch "lan2" "LAN2" "netgear:amber:lan2" "switch0" "0x04"
752 ucidef_set_led_switch "lan3" "LAN3" "netgear:amber:lan3" "switch0" "0x08"
753 ucidef_set_led_switch "lan4" "LAN4" "netgear:amber:lan4" "switch0" "0x10"
754 ucidef_set_led_usbdev "usb" "USB" "netgear:amber:status" "1-1"
755 ;;
756 wnr2200)
757 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
758 ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
759 ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
760 ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" "0x04"
761 ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" "0x04"
762 ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" "0x04"
763 ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" "0x04"
764 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02" "0x02"
765 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04" "0x02"
766 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08" "0x02"
767 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
768 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
769 ;;
770 wnr612-v2)
771 ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
772 ucidef_set_led_netdev "wlan" "WLAN" "netgear:green:wlan" "wlan0"
773 ucidef_set_led_switch "lan1" "LAN1" "netgear:green:lan1" "switch0" "0x02" "0x0f"
774 ucidef_set_led_switch "lan2" "LAN2" "netgear:green:lan2" "switch0" "0x04" "0x0f"
775 ;;
776 wpn824n)
777 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
778 ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy0tpt"
779 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02"
780 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04"
781 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08"
782 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10"
783 ucidef_set_led_default "lan1green" "LAN1 (green)" "netgear:green:lan1" "0"
784 ucidef_set_led_default "lan2green" "LAN2 (green)" "netgear:green:lan2" "0"
785 ucidef_set_led_default "lan3green" "LAN3 (green)" "netgear:green:lan3" "0"
786 ucidef_set_led_default "lan4green" "LAN4 (green)" "netgear:green:lan4" "0"
787 ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
788 ucidef_set_led_default "wps1" "WPS1" "netgear:blue:wps1" "0"
789 ucidef_set_led_default "wps2" "WPS2" "netgear:blue:wps2" "0"
790 ucidef_set_led_default "status" "STATUS" "netgear:amber:status" "0"
791 ucidef_set_led_default "test" "TEST" "netgear:amber:test" "0"
792 ;;
793 wzr-hp-ag300h)
794 ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
795 ucidef_set_led_netdev "router" "ROUTER" "buffalo:green:router" "eth1"
796 ucidef_set_led_usbdev "usb" "USB" "buffalo:green:usb" "1-1"
797 ;;
798 wzr-hp-g300nh)
799 ucidef_set_led_wlan "wlan" "Wireless" "buffalo:green:wireless" "phy0tpt"
800 ucidef_set_led_netdev "router" "Router" "buffalo:green:router" "eth1"
801 ucidef_set_led_usbdev "usb" "USB" "buffalo:blue:usb" "1-1"
802 ;;
803 xd3200)
804 ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:blue:wlan2g" "phy1tpt"
805 ;;
806 z1)
807 ucidef_set_led_netdev "wlan1" "WLAN1" "$board:blue:tricolor0" "wlan1"
808 ;;
809 zbt-we1526)
810 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
811 ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x10"
812 ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
813 ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x04"
814 ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan4" "switch0" "0x02"
815 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
816 ;;
817 zcn-1523h-2)
818 ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
819 ;;
820 zcn-1523h-5)
821 ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
822 ucidef_set_led_netdev "lan2" "lan2" "zcn-1523h:green:lan2" "eth1"
823 ;;
824 esac
825
826 board_config_flush
827
828 exit 0