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