ar71xx:add support for E558 v2
[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
8 board_config_update
9
10 board=$(board_name)
11
12 case "$board" in
13 a40)
14 ucidef_set_led_default "status-red" "Status (red)" "a40:red:status" "0"
15 ucidef_set_led_default "status-blue" "Status (blue)" "a40:blue:status" "0"
16 ;;
17 a60)
18 ucidef_set_led_default "status-red" "Status (red)" "a60:red:status" "0"
19 ucidef_set_led_default "status-blue" "Status (blue)" "a60:blue:status" "0"
20 ;;
21 airgateway|\
22 airgatewaypro)
23 ucidef_set_led_wlan "wlan" "WLAN" "ubnt:blue:wlan" "phy0tpt"
24 ;;
25 alfa-nx)
26 ucidef_set_led_netdev "wan" "WAN" "alfa:green:led_2" "eth0"
27 ucidef_set_led_netdev "lan" "LAN" "alfa:green:led_3" "eth1"
28 ;;
29 all0258n|\
30 all0315n)
31 ucidef_set_rssimon "wlan0" "200000" "1"
32 ucidef_set_led_rssi "rssilow" "RSSILOW" "$board:red:rssilow" "wlan0" "1" "40" "0" "6"
33 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "$board:yellow:rssimedium" "wlan0" "30" "80" "-29" "5"
34 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$board:green:rssihigh" "wlan0" "70" "100" "-69" "8"
35 ;;
36 antminer-s1|\
37 antminer-s3)
38 ucidef_set_led_default "sys" "SYS" "$board:green:sys" "0"
39 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
40
41 case "$board" in
42 antminer-s3)
43 ucidef_set_led_default "lan" "LAN" "$board:yellow:lan" "0"
44 ;;
45 esac
46 ;;
47 antrouter-r1)
48 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
49 ucidef_set_led_default "btc" "BTC" "$board:green:btc" "0"
50 ;;
51 ap121f)
52 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
53 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
54 ;;
55 ap147-010)
56 ucidef_set_led_netdev "wan" "WAN" "ap147:green:wan" "eth1"
57 ucidef_set_led_switch "lan1" "LAN1" "ap147:green:lan1" "switch0" "0x10"
58 ucidef_set_led_switch "lan2" "LAN2" "ap147:green:lan2" "switch0" "0x08"
59 ucidef_set_led_switch "lan3" "LAN3" "ap147:green:lan3" "switch0" "0x04"
60 ucidef_set_led_switch "lan4" "LAN4" "ap147:green:lan4" "switch0" "0x02"
61 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "ap147:green:wlan-2g" "phy0tpt"
62 ;;
63 ap90q|\
64 cpe505n|\
65 cpe830|\
66 cpe870|\
67 dr531|\
68 e600g-v2|\
69 e600gac-v2)
70 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
71 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
72
73 case "$board" in
74 ap90q)
75 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
76 ;;
77 cpe505n)
78 ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
79 ;;
80 cpe830|\
81 cpe870)
82 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
83 ucidef_set_rssimon "wlan0" "200000" "1"
84 ucidef_set_led_rssi "rssilow" "RSSILOW" "$board:green:link1" "wlan0" "1" "100" "0" "13"
85 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$board:green:link2" "wlan0" "26" "100" "-25" "13"
86 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$board:green:link3" "wlan0" "51" "100" "-50" "13"
87 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$board:green:link4" "wlan0" "76" "100" "-75" "13"
88 ;;
89 esac
90 ;;
91 ap531b0|\
92 gl-usb150|\
93 sc1750|\
94 sc450)
95 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
96 ;;
97 ap91-5g|\
98 n5q)
99 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
100 ucidef_set_rssimon "wlan0" "200000" "1"
101 ucidef_set_led_rssi "signal1" "SIGNAL1" "$board:red:signal1" "wlan0" "1" "100"
102 ucidef_set_led_rssi "signal2" "SIGNAL2" "$board:orange:signal2" "wlan0" "25" "100"
103 ucidef_set_led_rssi "signal3" "SIGNAL3" "$board:green:signal3" "wlan0" "50" "100"
104 ucidef_set_led_rssi "signal4" "SIGNAL4" "$board:green:signal4" "wlan0" "75" "100"
105
106 case "$board" in
107 n5q)
108 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
109 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
110 ;;
111 esac
112 ;;
113 archer-c25-v1)
114 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
115 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan2g" "phy1tpt"
116 ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt"
117 ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x10"
118 ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
119 ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x04"
120 ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan4" "switch0" "0x02"
121 ;;
122 archer-c5|\
123 archer-c7)
124 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
125 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
126 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy1tpt"
127 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy0tpt"
128 ;;
129 archer-c58-v1|\
130 archer-c59-v1|\
131 archer-c60-v1|\
132 archer-c60-v2)
133 ucidef_set_led_switch "lan" "LAN" "$board:green:lan" "switch0" "0x1E"
134 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
135 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan2g" "phy1tpt"
136 ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt"
137
138 case "$board" in
139 archer-c59-v1)
140 ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
141 ;;
142 esac
143 ;;
144 archer-c7-v4)
145 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan2g" "phy1tpt"
146 ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt"
147 ucidef_set_led_switch "wan" "WAN" "$board:green:wan" "switch0" "0x02"
148 ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan4" "switch0" "0x04"
149 ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan3" "switch0" "0x08"
150 ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan2" "switch0" "0x10"
151 ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan1" "switch0" "0x20"
152 ucidef_set_led_usbdev "usb1" "USB1" "$board:green:usb1" "1-1"
153 ucidef_set_led_usbdev "usb2" "USB2" "$board:green:usb2" "2-1"
154 ;;
155 arduino-yun)
156 ucidef_set_led_wlan "wlan" "WLAN" "arduino:blue:wlan" "phy0tpt"
157 ucidef_set_led_usbdev "usb" "USB" "arduino:white:usb" "1-1.1"
158 ;;
159 bhr-4grv2)
160 ucidef_set_led_default "power" "POWER" "buffalo:green:power" "1"
161 ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
162 ;;
163 bsb)
164 ucidef_set_led_default "sys" "SYS" "$board:red:sys" "1"
165 ;;
166 bullet-m|\
167 loco-m-xw|\
168 nanostation-m|\
169 nanostation-m-xw|\
170 rocket-m|\
171 rocket-m-xw)
172 ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100" "0" "13"
173 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:orange:link2" "wlan0" "26" "100" "-25" "13"
174 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
175 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
176 ;;
177 bxu2000n-2-a1)
178 ucidef_set_led_wlan "wlan" "WLAN" "bhu:green:wlan" "phy0tpt"
179 ;;
180 cap324)
181 ucidef_set_led_netdev "lan" "LAN" "pcs:green:lan" "eth0"
182 ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "pcs:amber:wlan" "phy0tpt"
183 ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "pcs:green:wlan" "phy1tpt"
184 ;;
185 c-55)
186 ucidef_set_led_netdev "lan_green" "LAN_GREEN" "$board:green:lan" "eth0"
187 ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "$board:amber:wlan" "phy0tpt"
188 ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "$board:green:wlan" "phy1tpt"
189 ;;
190 c-60)
191 ucidef_set_led_wlan "wlan1_green" "WLAN1_GREEN" "$board:green:wlan1" "phy0tpt"
192 ucidef_set_led_wlan "wlan2_green" "WLAN2_GREEN" "$board:green:wlan2" "phy1tpt"
193 ;;
194 cap4200ag)
195 ucidef_set_led_default "lan_green" "LAN_GREEN" "senao:green:lan" "1"
196 ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "senao:amber:wlan" "phy0tpt"
197 ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "senao:green:wlan" "phy1tpt"
198 ;;
199 carambola2)
200 ucidef_set_led_netdev "lan" "LAN" "$board:orange:eth0" "eth0"
201 ucidef_set_led_netdev "wan" "WAN" "$board:orange:eth1" "eth1"
202 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
203 ;;
204 cf-e316n-v2)
205 ucidef_set_led_netdev "lan" "LAN" "$board:blue:lan" "eth0"
206 ucidef_set_led_netdev "wan" "WAN" "$board:blue:wan" "eth1"
207 ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
208 ;;
209 cf-e320n-v2)
210 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
211 ucidef_set_led_netdev "wan" "WAN" "$board:red:wan" "eth1"
212 ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
213 ;;
214 cf-e355ac-v1|\
215 cf-e355ac-v2|\
216 cf-e375ac|\
217 cf-e380ac-v1|\
218 cf-e380ac-v2|\
219 cf-e385ac)
220 ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:blue:wlan2g" "phy1tpt"
221 ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:red:wlan5g" "phy0tpt"
222
223 case "$board" in
224 cf-e375ac|\
225 cf-e385ac)
226 ucidef_set_led_switch "lan" "LAN" "$board:green:lan" "switch0" "0x04"
227 ;;
228 *)
229 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
230 ;;
231 esac
232 ;;
233 cf-e520n|\
234 cf-e530n)
235 ucidef_set_led_netdev "wan" "WAN" "$board:blue:wan" "eth1"
236 ;;
237 cpe210|\
238 cpe210-v2|\
239 cpe510|\
240 wbs210|\
241 wbs510)
242 ucidef_set_rssimon "wlan0" "200000" "1"
243 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:link1" "wlan0" "1" "100" "0" "13"
244 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:link2" "wlan0" "26" "100" "-25" "13"
245 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "51" "100" "-50" "13"
246 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "76" "100" "-75" "13"
247
248 case "$board" in
249 cpe210-v2)
250 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan0" "eth0"
251 ;;
252 *)
253 ucidef_set_led_switch "lan0" "LAN0" "tp-link:green:lan0" "switch0" "0x20"
254 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
255 ;;
256 esac
257 ;;
258 cr3000)
259 ucidef_set_led_netdev "wan" "WAN" "pcs:blue:wan" "eth1"
260 ucidef_set_led_switch "lan1" "LAN1" "pcs:blue:lan1" "switch0" "0x04"
261 ucidef_set_led_switch "lan2" "LAN2" "pcs:blue:lan2" "switch0" "0x08"
262 ucidef_set_led_switch "lan3" "LAN3" "pcs:blue:lan3" "switch0" "0x10"
263 ucidef_set_led_switch "lan4" "LAN4" "pcs:blue:lan4" "switch0" "0x02"
264 ucidef_set_led_wlan "wlan" "WLAN" "pcs:blue:wlan" "phy0tpt"
265 ;;
266 cr5000)
267 ucidef_set_led_wlan "wlan" "WLAN" "pcs:blue:wlan" "phy0tpt"
268 ucidef_set_led_usbdev "usb" "USB" "pcs:white:wps" "1-1"
269 ;;
270 db120)
271 ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
272 ;;
273 dr344)
274 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
275 ;;
276 dragino2)
277 ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
278 ucidef_set_led_netdev "lan" "LAN" "$board:red:lan" "eth0"
279 ucidef_set_led_netdev "wan" "WAN" "$board:red:wan" "eth1"
280 ;;
281 dw33d)
282 ucidef_set_led_usbdev "mmc" "MMC" "$board:blue:mmc" "1-1"
283 ucidef_set_led_usbdev "usb" "USB" "$board:blue:usb" "2-1"
284 ucidef_set_led_netdev "internet" "INTERNET" "$board:blue:internet" "eth0"
285 ucidef_set_led_wlan "wlan2g" "WLAN-2.4G" "$board:blue:wlan-2g" "phy1tpt"
286 ;;
287 eap300v2)
288 ucidef_set_led_netdev "lan" "LAN" "engenius:blue:lan" "eth0"
289 ucidef_set_led_wlan "wlan" "WLAN" "engenius:blue:wlan" "phy0tpt"
290 ;;
291 ens202ext)
292 ucidef_set_rssimon "wlan0" "200000" "1"
293 ucidef_set_led_rssi "rssilow" "RSSILOW" "engenius:amber:wlan1" "wlan0" "1" "100" "0" "13"
294 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "engenius:red:wlan2" "wlan0" "25" "100" "-39" "13"
295 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "engenius:amber:wlan3" "wlan0" "50" "100" "-59" "13"
296 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "engenius:green:wlan4" "wlan0" "75" "100" "-79" "13"
297 ;;
298 f9k1115v2)
299 ucidef_set_led_usbdev "usb2" "USB2" "belkin:green:usb2" "1-1"
300 ;;
301 fritz300e)
302 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
303 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
304 ucidef_set_rssimon "wlan0" "200000" "1"
305 ucidef_set_led_rssi "rssilow" "RSSILOW" "$board:green:rssi0" "wlan0" "1" "100"
306 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$board:green:rssi1" "wlan0" "20" "100"
307 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "$board:green:rssi2" "wlan0" "40" "100"
308 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$board:green:rssi3" "wlan0" "60" "100"
309 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$board:green:rssi4" "wlan0" "80" "100"
310 ;;
311 dap-1330-a1)
312 ucidef_set_rssimon "wlan0" "2000000" "2"
313 ucidef_set_led_rssi "wifi-low" "wifi-low" "d-link:red:wifi" "wlan0" "1" "29"
314 ucidef_set_led_rssi "wifi-medium" "wifi-medium" "d-link:green:wifi" "wlan0" "30" "100"
315 ucidef_set_led_rssi "wifi-high" "wifi-high" "d-link:green:signal1" "wlan0" "50" "100"
316 ucidef_set_led_rssi "wifi-max" "wifi-max" "d-link:green:signal2" "wlan0" "70" "100"
317 ;;
318 dap-2695-a1)
319 ucidef_set_led_default "power" "POWER" "d-link:green:power" "1"
320 ucidef_set_led_default "diag" "DIAG" "d-link:red:power" "0"
321 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:green:wlan2g" "phy1tpt"
322 ;;
323 dhp-1565-a1)
324 ucidef_set_led_switch "wan" "WAN" "d-link:green:planet" "switch0" "0x20"
325 ;;
326 dir-600-a1|\
327 dir-615-e1|\
328 dir-615-e4|\
329 ebr-2310-c1)
330 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
331 ucidef_set_led_switch "lan1" "LAN1" "d-link:green:lan1" "switch0" "0x02"
332 ucidef_set_led_switch "lan2" "LAN2" "d-link:green:lan2" "switch0" "0x04"
333 ucidef_set_led_switch "lan3" "LAN3" "d-link:green:lan3" "switch0" "0x08"
334 ucidef_set_led_switch "lan4" "LAN4" "d-link:green:lan4" "switch0" "0x10"
335 ;;
336 dir-615-c1)
337 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
338 ucidef_set_led_wlan "wlan" "WLAN" "d-link:green:wlan" "phy0tpt"
339 ;;
340 dir-825-b1|\
341 dir-825-c1)
342 ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1"
343
344 case "$board" in
345 dir-825-c1)
346 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:blue:wlan2g" "phy0tpt"
347 ;;
348 esac
349 ;;
350 dir-615-i1)
351 ucidef_set_led_default "power" "POWER" "d-link:green:power" "1"
352 ucidef_set_led_default "diag" "DIAG" "d-link:amber:power" "0"
353 ucidef_set_led_default "wps" "WPS" "d-link:blue:wps" "0"
354 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth0"
355 ucidef_set_led_wlan "wlan" "WLAN" "d-link:green:wlan" "phy0tpt"
356 ;;
357 dlan-hotspot)
358 ucidef_set_led_wlan "wlan" "WLAN" "devolo:green:wifi" "phy0tpt"
359 ;;
360 dlan-pro-500-wp)
361 ucidef_set_led_default "power" "System Power" "devolo:green:status" "1"
362 ucidef_set_led_netdev "lan" "Ethernet Activity" "devolo:green:eth" "br-lan"
363 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "devolo:green:wlan-2g" "phy0tpt"
364 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "devolo:blue:wlan-5g" "none"
365 ;;
366 dlan-pro-1200-ac)
367 ucidef_set_led_wlan "wlan" "WLAN" "devolo:status:wlan" "phy0radio"
368 ucidef_set_led_gpio "plcw" "dLAN" "devolo:status:dlan" "17" "0"
369 ucidef_set_led_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0"
370 ;;
371 e1700ac-v2)
372 ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
373 ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:green:wlan2g" "phy1tpt"
374 ;;
375 e558-v2)
376 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
377 ;;
378 esr900)
379 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "engenius:blue:wlan-2g" "phy0tpt"
380 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "engenius:blue:wlan-5g" "phy1tpt"
381 ;;
382 esr1750|\
383 epg5000)
384 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "$board:blue:wlan-2g" "phy1tpt"
385 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan-5g" "phy0tpt"
386 ;;
387 fritz4020)
388 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
389 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
390 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
391 ;;
392 fritz450e)
393 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
394 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
395 ;;
396 gl-ar300m)
397 ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
398 ;;
399 gl-ar750)
400 ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:white:wlan2g" "phy1tpt"
401 ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:white:wlan5g" "phy0tpt"
402 ;;
403 gl-ar750s)
404 ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:green:wlan2g" "phy1tpt"
405 ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt"
406 ;;
407 gl-mifi)
408 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
409 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
410 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
411 ucidef_set_led_netdev "3gnet" "3GNET" "$board:green:net" "3g-wan"
412 ;;
413 gl-ar150)
414 ucidef_set_led_wlan "wlan" "WLAN" "$board:orange:wlan" "phy0tpt"
415 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
416 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
417 ;;
418 gl-ar300)
419 ucidef_set_led_wlan "wlan" "WLAN" "$board:wlan" "phy0tpt"
420 ;;
421 gl-domino|\
422 sc300m|\
423 wrt160nl)
424 ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
425 ;;
426 gl-inet)
427 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
428 ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
429 ;;
430 hiwifi-hc6361)
431 ucidef_set_led_netdev "inet" "INET" "hiwifi:blue:internet" "eth1"
432 ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt"
433 ;;
434 hornet-ub|\
435 hornet-ub-x2)
436 ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
437 ucidef_set_led_netdev "wan" "WAN" "alfa:blue:wan" "eth1"
438 ucidef_set_led_wlan "wlan" "WLAN" "alfa:blue:wlan" "phy0tpt"
439 ucidef_set_led_usbdev "usb" "USB" "alfa:blue:usb" "1-1"
440 ;;
441 koala)
442 ucidef_set_led_default "power" "POWER" "$board:green:power" "1"
443 ucidef_set_led_wlan "wlan2g" "WLAN 2.4GHz" "$board:yellow:wlan2" "phy1tpt"
444 ucidef_set_led_wlan "wlan5g" "WLAN 5GHz" "$board:red:wlan58" "phy0tpt"
445 ;;
446 lan-turtle)
447 ucidef_set_led_netdev "wan" "WAN" "$board:orange:system" "eth1"
448 ;;
449 lbe-m5)
450 ucidef_set_led_netdev "lan" "LAN" "ubnt:green:lan" "eth0"
451 ucidef_set_led_wlan "wlan" "WLAN" "ubnt:green:wlan" "phy0tpt"
452 ;;
453 mc-mac1200r)
454 ucidef_set_led_wlan "wlan2g" "WLAN2G" "mercury:green:wlan2g" "phy1tpt"
455 ucidef_set_led_wlan "wlan5g" "WLAN5G" "mercury:green:wlan5g" "phy0tpt"
456 ;;
457 mr12|\
458 mr16)
459 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
460 ucidef_set_led_wlan "wlan1" "WLAN1" "$board:green:wifi1" "phy0assoc"
461 ucidef_set_led_wlan "wlan2" "WLAN2" "$board:green:wifi2" "phy0assoc"
462 ucidef_set_led_wlan "wlan3" "WLAN3" "$board:green:wifi3" "phy0assoc"
463 ucidef_set_led_wlan "wlan4" "WLAN4" "$board:green:wifi4" "phy0tpt"
464 ;;
465 mr18)
466 ucidef_set_led_netdev "wlan0" "WLAN0" "$board:blue:tricolor0" "wlan0"
467 ;;
468 mr600)
469 ucidef_set_led_wlan "wlan58" "WLAN58" "$board:green:wlan58" "phy0tpt"
470 ucidef_set_led_default "wps" "WPS" "mr600:blue:wps" "0"
471 ;;
472 mr600v2)
473 ucidef_set_led_default "wlan24-red" "WLAN 2.4GHz (red)" "mr600:red:wlan24" "0"
474 ucidef_set_led_default "wlan24-yellow" "WLAN 2.4GHz (yellow)" "mr600:yellow:wlan24" "0"
475 ucidef_set_led_wlan "wlan24-green" "WLAN 4GHz (green)" "mr600:green:wlan24" "phy1tpt"
476 ucidef_set_led_default "wlan5-red" "WLAN 5GHz (red)" "mr600:red:wlan58" "0"
477 ucidef_set_led_default "wlan5-yellow" "WLAN 5GHz (yellow)" "mr600:yellow:wlan58" "0"
478 ucidef_set_led_wlan "wlan5-green" "WLAN 5GHz (green)" "mr600:green:wlan58" "phy0tpt"
479 ;;
480 mr1750|\
481 mr1750v2)
482 ucidef_set_led_netdev "lan" "LAN" "mr1750:blue:wan" "eth0"
483 ucidef_set_led_wlan "wlan58" "WLAN58" "mr1750:blue:wlan58" "phy0tpt"
484 ucidef_set_led_wlan "wlan24" "WLAN24" "mr1750:blue:wlan24" "phy1tpt"
485 ucidef_set_led_default "status-red" "Status (red)" "mr1750:red:wifi" "0"
486 ucidef_set_led_default "status-green" "Status (green)" "mr1750:green:wifi" "0"
487 ;;
488 mr900|\
489 mr900v2)
490 ucidef_set_led_netdev "lan" "LAN" "mr900:blue:wan" "eth0"
491 ucidef_set_led_wlan "wlan24" "WLAN24" "mr900:blue:wlan24" "phy0tpt"
492 ucidef_set_led_wlan "wlan58" "WLAN58" "mr900:blue:wlan58" "phy1tpt"
493 ucidef_set_led_default "status-red" "Status (red)" "mr900:red:wifi" "0"
494 ucidef_set_led_default "status-green" "Status (green)" "mr900:green:wifi" "0"
495 ;;
496 mynet-n600)
497 ucidef_set_led_netdev "wan" "WAN" "wd:blue:internet" "eth1"
498 ucidef_set_led_switch "lan1" "LAN1" "wd:green:lan1" "switch0" "0x02"
499 ucidef_set_led_switch "lan2" "LAN2" "wd:green:lan2" "switch0" "0x10"
500 ucidef_set_led_switch "lan3" "LAN3" "wd:green:lan3" "switch0" "0x08"
501 ucidef_set_led_switch "lan4" "LAN4" "wd:green:lan4" "switch0" "0x04"
502 ;;
503 mynet-rext)
504 ucidef_set_led_netdev "lan" "LAN" "wd:blue:ethernet" "eth0"
505 ucidef_set_rssimon "wlan0" "200000" "1"
506 ucidef_set_led_rssi "rssilow" "RSSILOW" "wd:blue:quality1" "wlan0" "1" "40" "0" "6"
507 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "wd:blue:quality2" "wlan0" "30" "80" "-29" "5"
508 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "wd:blue:quality3" "wlan0" "70" "100" "-69" "8"
509 ucidef_set_led_wlan "wlan" "WLAN" "wd:blue:wireless" "phy0tpt"
510 ;;
511 mzk-w04u)
512 ucidef_set_led_usbdev "usb" "USB" "planex:green:usb" "1-1"
513 ;;
514 mzk-w300nh)
515 ucidef_set_led_wlan "wlan" "WLAN" "planex:green:wlan" "phy0tpt"
516 ;;
517 nbg460n_550n_550nh)
518 ucidef_set_led_wlan "wlan" "WLAN" "nbg460n:green:wlan" "phy0tpt"
519 ;;
520 nbg6616)
521 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wifi2g" "phy1tpt"
522 ucidef_set_led_wlan "wlan5" "WLAN5" "$board:green:wifi5g" "phy0tpt"
523 ucidef_set_led_usbdev "usb1" "USB1" "$board:green:usb1" "1-1"
524 ucidef_set_led_usbdev "usb2" "USB2" "$board:green:usb2" "2-1"
525 ;;
526 nbg6716)
527 ucidef_set_led_netdev "wan" "WAN" "$board:white:internet" "eth1"
528 ucidef_set_led_wlan "wlan" "WLAN" "$board:white:wifi2g" "phy1tpt"
529 ucidef_set_led_wlan "wlan5" "WLAN5" "$board:white:wifi5g" "phy0tpt"
530 ucidef_set_led_usbdev "usb1" "USB1" "$board:white:usb1" "1-1"
531 ucidef_set_led_usbdev "usb2" "USB2" "$board:white:usb2" "2-1"
532 ;;
533 om2p|\
534 om2p-hs|\
535 om2p-hsv2|\
536 om2p-hsv3|\
537 om2p-hsv4|\
538 om2p-lc|\
539 om2pv2|\
540 om2pv4)
541 ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
542 ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
543 ucidef_set_led_default "wlan-red" "WLAN (red)" "om2p:red:wifi" "0"
544 ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om2p:yellow:wifi" "0"
545 ucidef_set_led_default "wlan-green" "WLAN (green)" "om2p:green:wifi" "0"
546 ;;
547 om5p|\
548 om5p-an)
549 ucidef_set_led_netdev "port1" "port1" "om5p:blue:wan" "eth0"
550 ucidef_set_led_netdev "port2" "port2" "om5p:blue:lan" "eth1"
551 ucidef_set_led_default "wlan-red" "WLAN (red)" "om5p:red:wifi" "0"
552 ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5p:yellow:wifi" "0"
553 ucidef_set_led_default "wlan-green" "WLAN (green)" "om5p:green:wifi" "0"
554 ;;
555 om5p-ac)
556 ucidef_set_led_netdev "port1" "port1" "om5pac:blue:lan" "eth0"
557 ucidef_set_led_netdev "port2" "port2" "om5pac:blue:wan" "eth1"
558 ucidef_set_led_default "wlan-red" "WLAN (red)" "om5pac:red:wifi" "0"
559 ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5pac:yellow:wifi" "0"
560 ucidef_set_led_default "wlan-green" "WLAN (green)" "om5pac:green:wifi" "0"
561 ;;
562 om5p-acv2)
563 ucidef_set_led_default "wlan-red" "WLAN (red)" "om5pac:red:wifi" "0"
564 ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5pac:yellow:wifi" "0"
565 ucidef_set_led_default "wlan-green" "WLAN (green)" "om5pac:green:wifi" "0"
566 ;;
567 omy-g1)
568 ucidef_set_led_wlan "wlan" "WLAN" "omy:green:wlan" "phy0tpt"
569 ucidef_set_led_netdev "wan" "WAN" "omy:green:wan" "eth0"
570 ucidef_set_led_netdev "lan" "LAN" "omy:green:lan" "eth1"
571 ;;
572 omy-x1)
573 ucidef_set_led_default "power" "POWER" "omy:green:power" "1"
574 ucidef_set_led_default "wan" "WAN" "omy:green:wan" "eth0"
575 ;;
576 pqi-air-pen)
577 ucidef_set_led_wlan "wlan" "WLAN" "pqi-air-pen:blue:wlan" "phy0tpt"
578 ucidef_set_led_default "wps" "WPS" "pqi-air-pen:blue:wps" "0"
579 ;;
580 qihoo-c301)
581 ucidef_set_led_wlan "wlan2g" "WLAN2G" "qihoo:red:status" "phy1tpt"
582 ;;
583 r36a)
584 ucidef_set_led_netdev "lan" "LAN" "$board:blue:lan" "eth0"
585 ucidef_set_led_usbdev "usb" "USB" "$board:blue:usb" "1-1"
586 ucidef_set_led_netdev "wan" "WAN" "$board:blue:wan" "eth1"
587 ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
588 ;;
589 r602n|\
590 t830|\
591 zbt-we1526)
592 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
593 ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x10"
594 ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
595 ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x04"
596 ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan4" "switch0" "0x02"
597 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
598
599 case "$board" in
600 t830)
601 ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
602 ;;
603 esac
604 ;;
605 r6100)
606 ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0"
607 ucidef_set_led_usbdev "usb" "USB" "netgear:blue:usb" "1-1"
608 ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy1tpt"
609 ;;
610 rb-750)
611 ucidef_set_led_default "act" "act" "rb750:green:act" "1"
612 ucidef_set_led_netdev "port1" "port1" "rb750:green:port1" "eth1"
613 ucidef_set_led_switch "port2" "port2" "rb750:green:port2" "switch0" "0x10"
614 ucidef_set_led_switch "port3" "port3" "rb750:green:port3" "switch0" "0x08"
615 ucidef_set_led_switch "port4" "port4" "rb750:green:port4" "switch0" "0x04"
616 ucidef_set_led_switch "port5" "port5" "rb750:green:port5" "switch0" "0x02"
617 ;;
618 rb-750-r2|\
619 rb-750p-pbr2|\
620 rb-750up-r2)
621 ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
622 ucidef_set_led_netdev "port1" "port1" "rb:green:port1" "eth0"
623 ucidef_set_led_switch "port2" "port2" "rb:green:port2" "switch0" "0x10"
624 ucidef_set_led_switch "port3" "port2" "rb:green:port3" "switch0" "0x08"
625 ucidef_set_led_switch "port4" "port3" "rb:green:port4" "switch0" "0x04"
626 ucidef_set_led_switch "port5" "port5" "rb:green:port5" "switch0" "0x02"
627 ;;
628 rb-911-2hn|\
629 rb-911-5hn)
630 ucidef_set_led_netdev "eth" "ETH" "rb:green:eth" "eth0"
631 ;;
632 rb-931-2nd|\
633 rb-941-2nd)
634 ucidef_set_led_timer "user" "USR/ACT" "rb:green:user" "1000" "1000"
635 ;;
636 rb-951ui-2nd|\
637 rb-952ui-5ac2nd)
638 ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
639 ucidef_set_led_netdev "port1" "port1" "rb:green:port1" "eth0"
640 ucidef_set_led_switch "port2" "port2" "rb:green:port2" "switch0" "0x10"
641 ucidef_set_led_switch "port3" "port2" "rb:green:port3" "switch0" "0x08"
642 ucidef_set_led_switch "port4" "port3" "rb:green:port4" "switch0" "0x04"
643 ucidef_set_led_switch "port5" "port5" "rb:green:port5" "switch0" "0x02"
644 ucidef_set_led_wlan "wlan" "WLAN" "rb:blue:wlan" "phy0tpt"
645 ;;
646 rb-962uigs-5hact2hnt)
647 ucidef_set_led_timer "user" "USER/SFP" "rb:green:user" "1000" "1000"
648 ;;
649 rb-2011il|\
650 rb-2011ils|\
651 rb-2011l|\
652 rb-2011uas|\
653 rb-2011uas-2hnd|\
654 rb-2011uias|\
655 rb-2011uias-2hnd)
656 ucidef_set_led_switch "eth6" "ETH6" "rb:green:eth6" "switch1" "0x20"
657 ucidef_set_led_switch "eth7" "ETH7" "rb:green:eth7" "switch1" "0x10"
658 ucidef_set_led_switch "eth8" "ETH8" "rb:green:eth8" "switch1" "0x08"
659 ucidef_set_led_switch "eth9" "ETH9" "rb:green:eth9" "switch1" "0x04"
660 ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
661 ;;
662 rb-lhg-5nd)
663 ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
664 ucidef_set_rssimon "wlan0" "200000" "1"
665 ucidef_set_led_rssi "rssilow" "RSSILOW" "rb:green:rssi0" "wlan0" "1" "100" "0" "13"
666 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "rb:green:rssi1" "wlan0" "20" "100" "-19" "13"
667 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "rb:green:rssi2" "wlan0" "40" "100" "-39" "13"
668 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "rb:green:rssi3" "wlan0" "60" "100" "-59" "13"
669 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "rb:green:rssi4" "wlan0" "80" "100" "-79" "13"
670 ;;
671 rb-map-2nd)
672 ucidef_set_led_switch "eth1" "WAN" "rb:green:eth1" "switch0" "0x02"
673 ucidef_set_led_switch "eth2" "LAN" "rb:green:eth2" "switch0" "0x04"
674 ucidef_set_led_gpio "poe" "POE" "rb:red:poe_out" "14" "0"
675 ucidef_set_led_wlan "wlan" "WLAN" "rb:green:wlan" "phy0tpt"
676 ;;
677 rb-mapl-2nd)
678 ucidef_set_led_default "power" "POWER" "rb:green:power" "1"
679 ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
680 ucidef_set_led_wlan "wlan" "WLAN" "rb:green:wlan" "phy0tpt"
681 ;;
682 rb-wap-2nd)
683 ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
684 ucidef_set_led_wlan "wlan" "WLAN" "rb:green:wlan" "phy0tpt"
685 ;;
686 rb-wapr-2nd)
687 ucidef_set_led_wlan "wlan" "WLAN" "rb:green:user" "phy0tpt"
688 ;;
689 re355|\
690 re450)
691 ucidef_set_led_netdev "lan_data" "LAN Data" "$board:green:lan_data" "eth0" "tx rx"
692 ucidef_set_led_netdev "lan_link" "LAN Link" "$board:green:lan_link" "eth0" "link"
693 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "$board:blue:wlan2g" "phy1tpt"
694 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan5g" "phy0tpt"
695 ;;
696 rme-eg200)
697 ucidef_set_led_netdev "wan" "WAN" "eg200:red:eth0" "eth0"
698 ucidef_set_led_wlan "wlan" "WLAN" "eg200:red:wlan" "phy0tpt"
699 ucidef_set_led_oneshot "modbus" "Modbus" "eg200:red:modbus" "100" "33"
700 ucidef_set_led_default "etactica" "etactica" "eg200:red:etactica" "ignore"
701 ;;
702 rocket-m-ti)
703 ucidef_set_led_rssi "rssiverylow" "RSSIVERYLOW" "ubnt:green:link1" "wlan0" "1" "100" "0" "13"
704 ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:green:link2" "wlan0" "26" "100" "-25" "13"
705 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
706 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
707 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link5" "wlan0" "76" "100" "-75" "13"
708 ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
709 ;;
710 rut900)
711 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
712 ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x10"
713 ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
714 ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x04"
715 ;;
716 smart-300)
717 ucidef_set_led_netdev "wan" "WAN" "nc-link:green:wan" "eth0"
718 ucidef_set_led_switch "lan1" "LAN1" "nc-link:green:lan1" "switch0" "0x04"
719 ucidef_set_led_switch "lan2" "LAN2" "nc-link:green:lan2" "switch0" "0x08"
720 ucidef_set_led_switch "lan3" "LAN3" "nc-link:green:lan3" "switch0" "0x10"
721 ucidef_set_led_switch "lan4" "LAN4" "nc-link:green:lan4" "switch0" "0x02"
722 ucidef_set_led_wlan "wlan" "WLAN" "nc-link:green:wlan" "phy0tpt"
723 ;;
724 som9331)
725 ucidef_set_led_netdev "wan" "WAN" "$board:orange:wan" "eth1"
726 ucidef_set_led_switch "lan1" "LAN1" "$board:orange:lan1" "switch0" "0x08"
727 ucidef_set_led_switch "lan2" "LAN2" "$board:orange:lan2" "switch0" "0x02"
728 ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
729 ucidef_set_led_usbdev "usb" "USB" "$board:green:system" "1-1"
730 ;;
731 sr3200)
732 ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:green:wlan2g" "phy1tpt"
733 ;;
734 tellstick-znet-lite)
735 ucidef_set_led_netdev "lan_act" "LANACT" "tellstick:green:lan" "eth0" "tx rx"
736 ucidef_set_led_netdev "lan_link" "LANLINK" "tellstick:orange:lan" "eth0" "link"
737 ;;
738 tew-712br)
739 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
740 ucidef_set_led_switch "lan1" "LAN1" "trendnet:green:lan1" "switch0" "0x02"
741 ucidef_set_led_switch "lan2" "LAN2" "trendnet:green:lan2" "switch0" "0x04"
742 ucidef_set_led_switch "lan3" "LAN3" "trendnet:green:lan3" "switch0" "0x08"
743 ucidef_set_led_switch "lan4" "LAN4" "trendnet:green:lan4" "switch0" "0x10"
744 ucidef_set_led_wlan "wlan" "WLAN" "trendnet:green:wlan" "phy0tpt"
745 ;;
746 tew-732br)
747 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
748 ;;
749 tew-823dru)
750 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:planet" "eth0"
751 ;;
752 tl-mr11u|\
753 tl-mr3020|\
754 tl-mr3040|\
755 tl-mr3040-v2)
756 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
757 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
758 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
759 ;;
760 tl-mr3220|\
761 tl-mr3420)
762 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
763 ;;
764 tl-mr3220-v2|\
765 tl-wr741nd-v4)
766 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
767 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
768 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
769 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
770 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
771 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
772
773 case "$board" in
774 tl-mr3220-v2)
775 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
776 ;;
777 esac
778 ;;
779 tl-mr3420-v2|\
780 tl-wr841n-v8|\
781 tl-wr842n-v2|\
782 tl-wr941nd-v5)
783 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
784 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
785 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
786 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
787 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
788 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
789
790 case "$board" in
791 tl-mr3420-v2|\
792 tl-wr842n-v2)
793 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
794 ;;
795 esac
796 ;;
797 tl-mr6400)
798 ucidef_set_led_netdev "lan" "LAN" "tp-link:white:lan" "eth0"
799 ucidef_set_led_netdev "wan" "WAN" "tp-link:white:wan" "eth1"
800 ucidef_set_led_netdev "4g" "4G" "tp-link:white:4g" "usb0"
801 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:white:wlan" "phy0tpt"
802 ;;
803 tl-wa7210n-v2)
804 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
805 ucidef_set_rssimon "wlan0" "200000" "1"
806 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:signal1" "wlan0" "1" "100" "0" "13"
807 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:signal2" "wlan0" "26" "100" "-25" "13"
808 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:signal3" "wlan0" "51" "100" "-50" "13"
809 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:signal4" "wlan0" "76" "100" "-75" "13"
810 ;;
811 tl-wa750re)
812 ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
813 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "phy0tpt"
814 ucidef_set_rssimon "wlan0" "200000" "1"
815 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:orange:signal1" "wlan0" "1" "100" "0" "13"
816 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:orange:signal2" "wlan0" "20" "100" "-19" "13"
817 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:orange:signal3" "wlan0" "40" "100" "-39" "13"
818 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:orange:signal4" "wlan0" "60" "100" "-59" "13"
819 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:orange:signal5" "wlan0" "80" "100" "-79" "13"
820 ;;
821 tl-wa801nd-v3)
822 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth1"
823 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
824 ;;
825 tl-wa850re|\
826 tl-wa850re-v2)
827 ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
828 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
829 ucidef_set_rssimon "wlan0" "200000" "1"
830 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:blue:signal1" "wlan0" "1" "100" "0" "13"
831 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:blue:signal2" "wlan0" "20" "100" "-19" "13"
832 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:blue:signal3" "wlan0" "40" "100" "-39" "13"
833 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:blue:signal4" "wlan0" "60" "100" "-59" "13"
834 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
835 ;;
836 tl-wa701nd-v2|\
837 tl-wa801nd-v2|\
838 tl-wa830re-v2|\
839 tl-wa860re|\
840 tl-wa901nd-v3|\
841 tl-wa901nd-v4|\
842 tl-wa901nd-v5)
843 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
844 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
845 ;;
846 tl-wa901nd)
847 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
848 ;;
849 tl-wa901nd-v2|\
850 tl-wr941nd|\
851 tl-wr1041n-v2)
852 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
853 ;;
854 tl-wdr3320-v2)
855 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:green:wlan5g" "phy0tpt"
856 ;;
857 tl-wdr3500)
858 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
859 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
860 ;;
861 tl-wdr4300)
862 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1.1"
863 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "1-1.2"
864 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
865 ;;
866 tl-wdr4900-v2)
867 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
868 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
869 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
870 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy1tpt"
871 ;;
872 tl-wdr6500-v2|\
873 tl-wr741nd)
874 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
875 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
876 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x04"
877 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
878 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
879 ;;
880 tl-wpa8630)
881 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
882 ucidef_set_led_netdev "wlan" "WLAN" "$board:green:wlan" "wlan1"
883 ucidef_set_led_netdev "wlan5" "WLAN5" "$board:green:wlan5" "wlan0"
884 ;;
885 tl-wr740n-v6|\
886 tl-wr841n-v9|\
887 tl-wr841n-v11|\
888 tl-wr842n-v3)
889 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
890 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
891 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
892 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
893 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
894 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
895
896 case "$board" in
897 tl-wr842n-v3)
898 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
899 ;;
900 esac
901 ;;
902 tl-wr802n-v1)
903 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:system" "phy0tpt"
904 ;;
905 tl-wr802n-v2)
906 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:system" "phy0tpt"
907 ;;
908 tl-wr902ac-v1)
909 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
910 ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
911 ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:green:wlan2g" "phy1tpt"
912 ;;
913 tl-wr940n-v4|\
914 tl-wr941nd-v6)
915 ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0"
916 ucidef_set_led_switch "lan1" "LAN1" "tp-link:blue:lan1" "switch0" "0x10"
917 ucidef_set_led_switch "lan2" "LAN2" "tp-link:blue:lan2" "switch0" "0x08"
918 ucidef_set_led_switch "lan3" "LAN3" "tp-link:blue:lan3" "switch0" "0x04"
919 ucidef_set_led_switch "lan4" "LAN4" "tp-link:blue:lan4" "switch0" "0x02"
920 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
921 ;;
922 tl-wr840n-v2|\
923 tl-wr840n-v3)
924 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
925 ucidef_set_led_switch "lan" "LAN" "tp-link:green:lan" "switch0" "0x1E"
926 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
927 ;;
928 tl-wr940n-v6)
929 ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0"
930 ;;
931 tl-wr942n-v1)
932 ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x04"
933 ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
934 ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x10"
935 ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan4" "switch0" "0x02"
936 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
937 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
938 ucidef_set_led_usbdev "usb1" "USB1" "$board:green:usb1" "1-1.2"
939 ucidef_set_led_usbdev "usb2" "USB2" "$board:green:usb2" "1-1.1"
940 ;;
941 tl-wr1043nd|\
942 tl-wr1043nd-v2)
943 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
944 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
945 ;;
946 tl-wr1043n-v5|\
947 tl-wr1043nd-v4)
948 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
949 ucidef_set_led_switch "wan" "WAN" "tp-link:green:wan" "switch0" "0x20"
950 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
951 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
952 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
953 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
954
955 case "$board" in
956 tl-wr1043nd-v4)
957 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
958 ;;
959 esac
960 ;;
961 tl-wr2543n)
962 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
963 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
964 ;;
965 tube2h)
966 ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
967 ucidef_set_rssimon "wlan0" "200000" "1"
968 ucidef_set_led_rssi "signal1" "SIGNAL1" "alfa:red:signal1" "wlan0" "1" "100" "0" "13"
969 ucidef_set_led_rssi "signal2" "SIGNAL2" "alfa:orange:signal2" "wlan0" "26" "100" "-25" "13"
970 ucidef_set_led_rssi "signal3" "SIGNAL3" "alfa:green:signal3" "wlan0" "51" "100" "-50" "13"
971 ucidef_set_led_rssi "signal4" "SIGNAL4" "alfa:green:signal4" "wlan0" "76" "100" "-75" "13"
972 ;;
973 wam250)
974 ucidef_set_led_netdev "lan" "LAN" "$board:white:lan" "eth0"
975 ucidef_set_led_wlan "wlan" "WLAN" "$board:white:wlan" "phy0tpt"
976 ;;
977 wndap360)
978 ucidef_set_led_power "power" "POWER GREEN" "netgear:green:power" "1"
979 ;;
980 wndr3700)
981 ucidef_set_led_default "wan" "WAN LED (green)" "netgear:green:wan" "0"
982 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
983 ;;
984 wi2a-ac200i)
985 ucidef_set_led_default "power" "Power (green)" "nokia:green:power" "1"
986 ucidef_set_led_default "wan" "Ethernet LED (green)" "nokia:green:wan" "1"
987 ucidef_set_led_wlan "wlan5g" "WLAN" "nokia:green:wlan-5g" "phy0tpt"
988 ucidef_set_led_wlan "wlan2g" "WLAN" "nokia:green:wlan-2g" "phy1tpt"
989 ;;
990 wndr3700v4|\
991 wndr4300)
992 ucidef_set_led_switch "wan-green" "WAN (green)" "netgear:green:wan" "switch0" "0x20" "0x08"
993 ucidef_set_led_switch "wan-amber" "WAN (amber)" "netgear:amber:wan" "switch0" "0x20" "0x06"
994 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
995 ucidef_set_led_wlan "wlan2g" "WLAN2G" "netgear:green:wlan2g" "phy0tpt"
996 ucidef_set_led_wlan "wlan5g" "WLAN5G" "netgear:blue:wlan5g" "phy1tpt"
997 ;;
998 whr-g301n|\
999 whr-hp-g300n|\
1000 whr-hp-gn)
1001 ucidef_set_led_netdev "wan" "WAN" "buffalo:green:wan" "eth1"
1002 ucidef_set_led_switch "lan1" "LAN1" "buffalo:green:lan1" "switch0" "0x02"
1003 ucidef_set_led_switch "lan2" "LAN2" "buffalo:green:lan2" "switch0" "0x04"
1004 ucidef_set_led_switch "lan3" "LAN3" "buffalo:green:lan3" "switch0" "0x08"
1005 ucidef_set_led_switch "lan4" "LAN4" "buffalo:green:lan4" "switch0" "0x10"
1006 ;;
1007 wifi-pineapple-nano)
1008 ucidef_set_led_wlan "wlan0" "WLAN0" "$board:blue:system" "phy0tpt"
1009 ;;
1010 wlae-ag300n)
1011 ucidef_set_led_netdev "wireless" "WIRELESS" "buffalo:green:wireless" "wlan0"
1012 ;;
1013 wnr1000-v2|\
1014 wnr2000-v3)
1015 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
1016 ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
1017 ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy0tpt"
1018 ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" "0x04"
1019 ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" "0x04"
1020 ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" "0x04"
1021 ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" "0x04"
1022 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02" "0x02"
1023 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04" "0x02"
1024 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08" "0x02"
1025 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
1026 ;;
1027 wnr2000-v4)
1028 ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
1029 ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
1030 ucidef_set_led_switch "lan1" "LAN1" "netgear:amber:lan1" "switch0" "0x02"
1031 ucidef_set_led_switch "lan2" "LAN2" "netgear:amber:lan2" "switch0" "0x04"
1032 ucidef_set_led_switch "lan3" "LAN3" "netgear:amber:lan3" "switch0" "0x08"
1033 ucidef_set_led_switch "lan4" "LAN4" "netgear:amber:lan4" "switch0" "0x10"
1034 ucidef_set_led_usbdev "usb" "USB" "netgear:amber:status" "1-1"
1035 ;;
1036 wnr2200)
1037 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
1038 ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
1039 ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy0tpt"
1040 ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" "0x04"
1041 ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" "0x04"
1042 ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" "0x04"
1043 ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" "0x04"
1044 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02" "0x02"
1045 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04" "0x02"
1046 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08" "0x02"
1047 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
1048 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
1049 ;;
1050 wnr612-v2)
1051 ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
1052 ucidef_set_led_wlan "wlan" "WLAN" "netgear:green:wlan" "phy0tpt"
1053 ucidef_set_led_switch "lan1" "LAN1" "netgear:green:lan1" "switch0" "0x02" "0x0f"
1054 ucidef_set_led_switch "lan2" "LAN2" "netgear:green:lan2" "switch0" "0x04" "0x0f"
1055 ;;
1056 wpn824n)
1057 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
1058 ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy0tpt"
1059 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02"
1060 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04"
1061 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08"
1062 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10"
1063 ucidef_set_led_default "lan1green" "LAN1 (green)" "netgear:green:lan1" "0"
1064 ucidef_set_led_default "lan2green" "LAN2 (green)" "netgear:green:lan2" "0"
1065 ucidef_set_led_default "lan3green" "LAN3 (green)" "netgear:green:lan3" "0"
1066 ucidef_set_led_default "lan4green" "LAN4 (green)" "netgear:green:lan4" "0"
1067 ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
1068 ucidef_set_led_default "wps1" "WPS1" "netgear:blue:wps1" "0"
1069 ucidef_set_led_default "wps2" "WPS2" "netgear:blue:wps2" "0"
1070 ucidef_set_led_default "status" "STATUS" "netgear:amber:status" "0"
1071 ucidef_set_led_default "test" "TEST" "netgear:amber:test" "0"
1072 ;;
1073 wzr-hp-ag300h)
1074 ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
1075 ucidef_set_led_netdev "router" "ROUTER" "buffalo:green:router" "eth1"
1076 ucidef_set_led_wlan "wlan2g" "WLAN2G" "buffalo:amber:band2g" "phy0tpt"
1077 ucidef_set_led_wlan "wlan5g" "WLAN5G" "buffalo:amber:band5g" "phy1tpt"
1078 ucidef_set_led_usbdev "usb" "USB" "buffalo:green:usb" "1-1"
1079 ;;
1080 wzr-hp-g300nh)
1081 ucidef_set_led_wlan "wlan" "Wireless" "buffalo:green:wireless" "phy0tpt"
1082 ucidef_set_led_netdev "router" "Router" "buffalo:green:router" "eth1"
1083 ucidef_set_led_usbdev "usb" "USB" "buffalo:blue:usb" "1-1"
1084 ;;
1085 wzr-hp-g300nh2|\
1086 wzr-hp-g450h)
1087 ucidef_set_led_wlan "wlan" "Wireless" "buffalo:green:wireless" "phy0tpt"
1088 ;;
1089 xd3200)
1090 ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:blue:wlan2g" "phy1tpt"
1091 ;;
1092 z1)
1093 ucidef_set_led_netdev "wlan1" "WLAN1" "$board:blue:tricolor0" "wlan1"
1094 ;;
1095 zcn-1523h-2)
1096 ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
1097 ;;
1098 zcn-1523h-5)
1099 ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
1100 ucidef_set_led_netdev "lan2" "lan2" "zcn-1523h:green:lan2" "eth1"
1101 ;;
1102 esac
1103
1104 board_config_flush
1105
1106 exit 0