ar71xx: set status led for the gl-* boards
[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" "0x1E"
55 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
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-750-r2|\
226 rb-750up-r2)
227 ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
228 ucidef_set_led_netdev "port1" "port1" "rb:green:port1" "eth0"
229 ucidef_set_led_switch "port2" "port2" "rb:green:port2" "switch0" "0x10"
230 ucidef_set_led_switch "port3" "port2" "rb:green:port3" "switch0" "0x08"
231 ucidef_set_led_switch "port4" "port3" "rb:green:port4" "switch0" "0x04"
232 ucidef_set_led_switch "port5" "port5" "rb:green:port5" "switch0" "0x02"
233 ;;
234 rb-941-2nd)
235 ucidef_set_led_timer "user" "USR/ACT" "rb:green:user" "1000" "1000"
236 ;;
237 rb-951ui-2nd)
238 ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
239 ucidef_set_led_netdev "port1" "port1" "rb:green:port1" "eth0"
240 ucidef_set_led_switch "port2" "port2" "rb:green:port2" "switch0" "0x10"
241 ucidef_set_led_switch "port3" "port2" "rb:green:port3" "switch0" "0x08"
242 ucidef_set_led_switch "port4" "port3" "rb:green:port4" "switch0" "0x04"
243 ucidef_set_led_switch "port5" "port5" "rb:green:port5" "switch0" "0x02"
244 ucidef_set_led_wlan "wlan" "WLAN" "rb:blue:wlan" "phy0tpt"
245 ;;
246 rb-2011l|\
247 rb-2011uas|\
248 rb-2011uias|\
249 rb-2011uas-2hnd|\
250 rb-2011uias-2hnd)
251 ucidef_set_led_switch "eth6" "ETH6" "rb:green:eth6" "switch1" "0x20"
252 ucidef_set_led_switch "eth7" "ETH7" "rb:green:eth7" "switch1" "0x10"
253 ucidef_set_led_switch "eth8" "ETH8" "rb:green:eth8" "switch1" "0x08"
254 ucidef_set_led_switch "eth9" "ETH9" "rb:green:eth9" "switch1" "0x04"
255 ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
256 ;;
257 rb-mapl-2nd)
258 ucidef_set_led_default "power" "POWER" "rb:green:power" "1"
259 ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
260 ucidef_set_led_wlan "wlan" "WLAN" "rb:green:wlan" "phy0tpt"
261 ;;
262 dap-2695-a1)
263 ucidef_set_led_default "power" "POWER" "d-link:green:power" "1"
264 ucidef_set_led_default "diag" "DIAG" "d-link:red:power" "0"
265 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:green:wlan2g" "phy1tpt"
266 ;;
267 dhp-1565-a1)
268 ucidef_set_led_switch "wan" "WAN" "d-link:green:planet" "switch0" "0x20"
269 ;;
270 dir-600-a1|\
271 dir-615-e1|\
272 dir-615-e4|\
273 ebr-2310-c1)
274 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
275 ucidef_set_led_switch "lan1" "LAN1" "d-link:green:lan1" "switch0" "0x02"
276 ucidef_set_led_switch "lan2" "LAN2" "d-link:green:lan2" "switch0" "0x04"
277 ucidef_set_led_switch "lan3" "LAN3" "d-link:green:lan3" "switch0" "0x08"
278 ucidef_set_led_switch "lan4" "LAN4" "d-link:green:lan4" "switch0" "0x10"
279 ;;
280 dir-615-c1)
281 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
282 ucidef_set_led_wlan "wlan" "WLAN" "d-link:green:wlan" "phy0tpt"
283 ;;
284 dir-825-b1|\
285 dir-825-c1)
286 ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1"
287
288 case "$board" in
289 dir-825-c1)
290 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:blue:wlan2g" "phy0tpt"
291 ;;
292 esac
293 ;;
294 dir-615-i1)
295 ucidef_set_led_default "power" "POWER" "d-link:green:power" "1"
296 ucidef_set_led_default "diag" "DIAG" "d-link:amber:power" "0"
297 ucidef_set_led_default "wps" "WPS" "d-link:blue:wps" "0"
298 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth0"
299 ucidef_set_led_wlan "wlan" "WLAN" "d-link:green:wlan" "phy0tpt"
300 ;;
301 dlan-hotspot)
302 ucidef_set_led_wlan "wlan" "WLAN" "devolo:green:wifi" "phy0tpt"
303 ;;
304 dlan-pro-500-wp)
305 ucidef_set_led_default "power" "System Power" "devolo:green:status" "1"
306 ucidef_set_led_netdev "lan" "Ethernet Activity" "devolo:green:eth" "br-lan"
307 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "devolo:green:wlan-2g" "phy0tpt"
308 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "devolo:blue:wlan-5g" "none"
309 ;;
310 dlan-pro-1200-ac)
311 ucidef_set_led_wlan "wlan" "WLAN" "devolo:status:wlan" "phy0radio"
312 ucidef_set_led_gpio "plcw" "dLAN" "devolo:status:dlan" "17" "0"
313 ucidef_set_led_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0"
314 ;;
315 gl-ar300m)
316 ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
317 ;;
318 gl-mifi)
319 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
320 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
321 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
322 ucidef_set_led_netdev "3gnet" "3GNET" "$board:green:net" "3g-wan"
323 ;;
324 gl-ar150|\
325 gl-ar300)
326 ucidef_set_led_wlan "wlan" "WLAN" "$board:wlan" "phy0tpt"
327 ;;
328 gl-domino|\
329 sc300m|\
330 wrt160nl)
331 ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
332 ;;
333 gl-inet)
334 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
335 ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
336 ;;
337 esr900)
338 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "engenius:blue:wlan-2g" "phy0tpt"
339 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "engenius:blue:wlan-5g" "phy1tpt"
340 ;;
341 esr1750|\
342 epg5000)
343 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "$board:blue:wlan-2g" "phy1tpt"
344 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan-5g" "phy0tpt"
345 ;;
346 hiwifi-hc6361)
347 ucidef_set_led_netdev "inet" "INET" "hiwifi:blue:internet" "eth1"
348 ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt"
349 ;;
350 hornet-ub|\
351 hornet-ub-x2)
352 ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
353 ucidef_set_led_netdev "wan" "WAN" "alfa:blue:wan" "eth1"
354 ucidef_set_led_wlan "wlan" "WLAN" "alfa:blue:wlan" "phy0tpt"
355 ucidef_set_led_usbdev "usb" "USB" "alfa:blue:usb" "1-1"
356 ;;
357 mc-mac1200r)
358 ucidef_set_led_wlan "wlan2g" "WLAN2G" "mercury:green:wlan2g" "phy1tpt"
359 ucidef_set_led_wlan "wlan5g" "WLAN5G" "mercury:green:wlan5g" "phy0tpt"
360 ;;
361 mr12|\
362 mr16)
363 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
364 ucidef_set_led_wlan "wlan1" "WLAN1" "$board:green:wifi1" "phy0assoc"
365 ucidef_set_led_wlan "wlan2" "WLAN2" "$board:green:wifi2" "phy0assoc"
366 ucidef_set_led_wlan "wlan3" "WLAN3" "$board:green:wifi3" "phy0assoc"
367 ucidef_set_led_wlan "wlan4" "WLAN4" "$board:green:wifi4" "phy0tpt"
368 ;;
369 mr18)
370 ucidef_set_led_netdev "wlan0" "WLAN0" "$board:blue:tricolor0" "wlan0"
371 ;;
372 mr600)
373 ucidef_set_led_wlan "wlan58" "WLAN58" "$board:green:wlan58" "phy0tpt"
374 ucidef_set_led_default "wps" "WPS" "mr600:blue:wps" "0"
375 ;;
376 mr600v2)
377 ucidef_set_led_default "wlan24-red" "WLAN 2.4GHz (red)" "mr600:red:wlan24" "0"
378 ucidef_set_led_default "wlan24-yellow" "WLAN 2.4GHz (yellow)" "mr600:yellow:wlan24" "0"
379 ucidef_set_led_wlan "wlan24-green" "WLAN 4GHz (green)" "mr600:green:wlan24" "phy1tpt"
380 ucidef_set_led_default "wlan5-red" "WLAN 5GHz (red)" "mr600:red:wlan58" "0"
381 ucidef_set_led_default "wlan5-yellow" "WLAN 5GHz (yellow)" "mr600:yellow:wlan58" "0"
382 ucidef_set_led_wlan "wlan5-green" "WLAN 5GHz (green)" "mr600:green:wlan58" "phy0tpt"
383 ;;
384 mr1750|\
385 mr1750v2)
386 ucidef_set_led_netdev "lan" "LAN" "mr1750:blue:wan" "eth0"
387 ucidef_set_led_wlan "wlan58" "WLAN58" "mr1750:blue:wlan58" "phy0tpt"
388 ucidef_set_led_wlan "wlan24" "WLAN24" "mr1750:blue:wlan24" "phy1tpt"
389 ucidef_set_led_default "status-red" "Status (red)" "mr1750:red:wifi" "0"
390 ucidef_set_led_default "status-green" "Status (green)" "mr1750:green:wifi" "0"
391 ;;
392 mr900|\
393 mr900v2)
394 ucidef_set_led_netdev "lan" "LAN" "mr900:blue:wan" "eth0"
395 ucidef_set_led_wlan "wlan24" "WLAN24" "mr900:blue:wlan24" "phy0tpt"
396 ucidef_set_led_wlan "wlan58" "WLAN58" "mr900:blue:wlan58" "phy1tpt"
397 ucidef_set_led_default "status-red" "Status (red)" "mr900:red:wifi" "0"
398 ucidef_set_led_default "status-green" "Status (green)" "mr900:green:wifi" "0"
399 ;;
400 mynet-n600)
401 ucidef_set_led_netdev "wan" "WAN" "wd:blue:internet" "eth1"
402 ucidef_set_led_switch "lan1" "LAN1" "wd:green:lan1" "switch0" "0x02"
403 ucidef_set_led_switch "lan2" "LAN2" "wd:green:lan2" "switch0" "0x10"
404 ucidef_set_led_switch "lan3" "LAN3" "wd:green:lan3" "switch0" "0x08"
405 ucidef_set_led_switch "lan4" "LAN4" "wd:green:lan4" "switch0" "0x04"
406 ;;
407 mynet-rext)
408 ucidef_set_led_netdev "lan" "LAN" "wd:blue:ethernet" "eth0"
409 ucidef_set_rssimon "wlan0" "200000" "1"
410 ucidef_set_led_rssi "rssilow" "RSSILOW" "wd:blue:quality1" "wlan0" "1" "40" "0" "6"
411 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "wd:blue:quality2" "wlan0" "30" "80" "-29" "5"
412 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "wd:blue:quality3" "wlan0" "70" "100" "-69" "8"
413 ucidef_set_led_wlan "wlan" "WLAN" "wd:blue:wireless" "phy0tpt"
414 ;;
415 mzk-w04u)
416 ucidef_set_led_usbdev "usb" "USB" "planex:green:usb" "1-1"
417 ;;
418 mzk-w300nh)
419 ucidef_set_led_wlan "wlan" "WLAN" "planex:green:wlan" "phy0tpt"
420 ;;
421 nbg460n_550n_550nh)
422 ucidef_set_led_wlan "wlan" "WLAN" "nbg460n:green:wlan" "phy0tpt"
423 ;;
424 nbg6616)
425 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wifi2g" "phy1tpt"
426 ucidef_set_led_wlan "wlan5" "WLAN5" "$board:green:wifi5g" "phy0tpt"
427 ucidef_set_led_usbdev "usb1" "USB1" "$board:green:usb1" "1-1"
428 ucidef_set_led_usbdev "usb2" "USB2" "$board:green:usb2" "2-1"
429 ;;
430 nbg6716)
431 ucidef_set_led_netdev "wan" "WAN" "$board:white:internet" "eth1"
432 ucidef_set_led_wlan "wlan" "WLAN" "$board:white:wifi2g" "phy1tpt"
433 ucidef_set_led_wlan "wlan5" "WLAN5" "$board:white:wifi5g" "phy0tpt"
434 ucidef_set_led_usbdev "usb1" "USB1" "$board:white:usb1" "1-1"
435 ucidef_set_led_usbdev "usb2" "USB2" "$board:white:usb2" "2-1"
436 ;;
437 om2p|\
438 om2pv2|\
439 om2pv4|\
440 om2p-hs|\
441 om2p-hsv2|\
442 om2p-hsv3|\
443 om2p-hsv4|\
444 om2p-lc)
445 ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
446 ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
447 ucidef_set_led_default "wlan-red" "WLAN (red)" "om2p:red:wifi" "0"
448 ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om2p:yellow:wifi" "0"
449 ucidef_set_led_default "wlan-green" "WLAN (green)" "om2p:green:wifi" "0"
450 ;;
451 om5p|\
452 om5p-an)
453 ucidef_set_led_netdev "port1" "port1" "om5p:blue:wan" "eth0"
454 ucidef_set_led_netdev "port2" "port2" "om5p:blue:lan" "eth1"
455 ucidef_set_led_default "wlan-red" "WLAN (red)" "om5p:red:wifi" "0"
456 ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5p:yellow:wifi" "0"
457 ucidef_set_led_default "wlan-green" "WLAN (green)" "om5p:green:wifi" "0"
458 ;;
459 om5p-ac)
460 ucidef_set_led_netdev "port1" "port1" "om5pac:blue:lan" "eth0"
461 ucidef_set_led_netdev "port2" "port2" "om5pac:blue:wan" "eth1"
462 ucidef_set_led_default "wlan-red" "WLAN (red)" "om5pac:red:wifi" "0"
463 ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5pac:yellow:wifi" "0"
464 ucidef_set_led_default "wlan-green" "WLAN (green)" "om5pac:green:wifi" "0"
465 ;;
466 om5p-acv2)
467 ucidef_set_led_default "wlan-red" "WLAN (red)" "om5pac:red:wifi" "0"
468 ucidef_set_led_default "wlan-yellow" "WLAN (yellow)" "om5pac:yellow:wifi" "0"
469 ucidef_set_led_default "wlan-green" "WLAN (green)" "om5pac:green:wifi" "0"
470 ;;
471 omy-g1)
472 ucidef_set_led_wlan "wlan" "WLAN" "omy:green:wlan" "phy0tpt"
473 ucidef_set_led_netdev "wan" "WAN" "omy:green:wan" "eth0"
474 ucidef_set_led_netdev "lan" "LAN" "omy:green:lan" "eth1"
475 ;;
476 omy-x1)
477 ucidef_set_led_default "power" "POWER" "omy:green:power" "1"
478 ucidef_set_led_default "wan" "WAN" "omy:green:wan" "eth0"
479 ;;
480 pqi-air-pen)
481 ucidef_set_led_wlan "wlan" "WLAN" "pqi-air-pen:blue:wlan" "phy0tpt"
482 ucidef_set_led_default "wps" "WPS" "pqi-air-pen:blue:wps" "0"
483 ;;
484 qihoo-c301)
485 ucidef_set_led_wlan "wlan2g" "WLAN2G" "qihoo:red:status" "phy1tpt"
486 ;;
487 re450)
488 ucidef_set_led_netdev "lan_data" "LAN Data" "$board:green:lan_data" "eth0" "tx rx"
489 ucidef_set_led_netdev "lan_link" "LAN Link" "$board:green:lan_link" "eth0" "link"
490 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "$board:blue:wlan2g" "phy1tpt"
491 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan5g" "phy0tpt"
492 ;;
493 sc1750|\
494 sc450)
495 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
496 ;;
497 smart-300)
498 ucidef_set_led_netdev "wan" "WAN" "nc-link:green:wan" "eth0"
499 ucidef_set_led_switch "lan1" "LAN1" "nc-link:green:lan1" "switch0" "0x04"
500 ucidef_set_led_switch "lan2" "LAN2" "nc-link:green:lan2" "switch0" "0x08"
501 ucidef_set_led_switch "lan3" "LAN3" "nc-link:green:lan3" "switch0" "0x10"
502 ucidef_set_led_switch "lan4" "LAN4" "nc-link:green:lan4" "switch0" "0x02"
503 ucidef_set_led_wlan "wlan" "WLAN" "nc-link:green:wlan" "phy0tpt"
504 ;;
505 som9331)
506 ucidef_set_led_netdev "wan" "WAN" "$board:orange:wan" "eth1"
507 ucidef_set_led_switch "lan1" "LAN1" "$board:orange:lan1" "switch0" "0x08"
508 ucidef_set_led_switch "lan2" "LAN2" "$board:orange:lan2" "switch0" "0x02"
509 ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
510 ucidef_set_led_usbdev "usb" "USB" "$board:green:system" "1-1"
511 ;;
512 sr3200)
513 ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:green:wlan2g" "phy1tpt"
514 ;;
515 tellstick-znet-lite)
516 ucidef_set_led_netdev "lan_act" "LANACT" "tellstick:green:lan" "eth0" "tx rx"
517 ucidef_set_led_netdev "lan_link" "LANLINK" "tellstick:orange:lan" "eth0" "link"
518 ;;
519 tew-712br)
520 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
521 ucidef_set_led_switch "lan1" "LAN1" "trendnet:green:lan1" "switch0" "0x02"
522 ucidef_set_led_switch "lan2" "LAN2" "trendnet:green:lan2" "switch0" "0x04"
523 ucidef_set_led_switch "lan3" "LAN3" "trendnet:green:lan3" "switch0" "0x08"
524 ucidef_set_led_switch "lan4" "LAN4" "trendnet:green:lan4" "switch0" "0x10"
525 ucidef_set_led_wlan "wlan" "WLAN" "trendnet:green:wlan" "phy0tpt"
526 ;;
527 tew-732br)
528 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
529 ;;
530 tew-823dru)
531 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:planet" "eth0"
532 ;;
533 tl-mr11u|\
534 tl-mr3020|\
535 tl-mr3040|\
536 tl-mr3040-v2)
537 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
538 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
539 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
540 ;;
541 tl-mr3220|\
542 tl-mr3420)
543 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
544 ;;
545 tl-mr3220-v2|\
546 tl-wr741nd-v4)
547 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
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-mr3220-v2)
556 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
557 ;;
558 esac
559 ;;
560 tl-mr3420-v2|\
561 tl-wr841n-v8|\
562 tl-wr842n-v2|\
563 tl-wr941nd-v5)
564 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
565 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
566 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
567 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
568 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
569 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
570
571 case "$board" in
572 tl-wr842n-v2|\
573 tl-mr3420-v2)
574 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
575 ;;
576 esac
577 ;;
578 tl-wa7210n-v2)
579 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
580 ucidef_set_rssimon "wlan0" "200000" "1"
581 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:signal1" "wlan0" "1" "100" "0" "13"
582 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:signal2" "wlan0" "26" "100" "-25" "13"
583 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:signal3" "wlan0" "51" "100" "-50" "13"
584 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:signal4" "wlan0" "76" "100" "-75" "13"
585 ;;
586 tl-wa750re)
587 ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
588 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "phy0tpt"
589 ucidef_set_rssimon "wlan0" "200000" "1"
590 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:orange:signal1" "wlan0" "1" "100" "0" "13"
591 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:orange:signal2" "wlan0" "20" "100" "-19" "13"
592 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:orange:signal3" "wlan0" "40" "100" "-39" "13"
593 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:orange:signal4" "wlan0" "60" "100" "-59" "13"
594 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:orange:signal5" "wlan0" "80" "100" "-79" "13"
595 ;;
596 tl-wa801nd-v3)
597 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth1"
598 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
599 ;;
600 tl-wa850re|\
601 tl-wa850re-v2)
602 ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
603 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
604 ucidef_set_rssimon "wlan0" "200000" "1"
605 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:blue:signal1" "wlan0" "1" "100" "0" "13"
606 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:blue:signal2" "wlan0" "20" "100" "-19" "13"
607 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:blue:signal3" "wlan0" "40" "100" "-39" "13"
608 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:blue:signal4" "wlan0" "60" "100" "-59" "13"
609 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
610 ;;
611 tl-wa701nd-v2|\
612 tl-wa860re|\
613 tl-wa830re-v2|\
614 tl-wa801nd-v2|\
615 tl-wa901nd-v3|\
616 tl-wa901nd-v4)
617 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
618 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
619 ;;
620 tl-wa901nd)
621 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
622 ;;
623 tl-wa901nd-v2|\
624 tl-wr941nd|\
625 tl-wr1041n-v2)
626 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
627 ;;
628 tl-wdr3320-v2)
629 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:green:wlan5g" "phy0tpt"
630 ;;
631 tl-wdr3500)
632 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
633 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
634 ;;
635 tl-wdr4300)
636 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1.1"
637 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "1-1.2"
638 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
639 ;;
640 tl-wdr4900-v2)
641 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
642 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
643 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
644 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy1tpt"
645 ;;
646 tl-wdr6500-v2|\
647 tl-wr741nd)
648 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
649 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
650 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x04"
651 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
652 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
653 ;;
654 archer-c5|\
655 archer-c7)
656 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
657 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
658 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy1tpt"
659 ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy0tpt"
660 ;;
661 tl-wpa8630)
662 ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
663 ucidef_set_led_netdev "wlan" "WLAN" "$board:green:wlan" "wlan1"
664 ucidef_set_led_netdev "wlan5" "WLAN5" "$board:green:wlan5" "wlan0"
665 ;;
666 tl-wr802n-v1)
667 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:system" "phy0tpt"
668 ;;
669 tl-wr802n-v2)
670 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:system" "phy0tpt"
671 ;;
672 tl-wr940n-v4|\
673 tl-wr941nd-v6)
674 ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0"
675 ucidef_set_led_switch "lan1" "LAN1" "tp-link:blue:lan1" "switch0" "0x10"
676 ucidef_set_led_switch "lan2" "LAN2" "tp-link:blue:lan2" "switch0" "0x08"
677 ucidef_set_led_switch "lan3" "LAN3" "tp-link:blue:lan3" "switch0" "0x04"
678 ucidef_set_led_switch "lan4" "LAN4" "tp-link:blue:lan4" "switch0" "0x02"
679 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
680 ;;
681 tl-wr841n-v9|\
682 tl-wr841n-v11|\
683 tl-wr842n-v3)
684 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
685 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
686 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
687 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
688 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
689 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
690
691 case "$board" in
692 tl-wr842n-v3)
693 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
694 ;;
695 esac
696 ;;
697 tl-wr1043nd|\
698 tl-wr1043nd-v2)
699 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
700 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
701 ;;
702 tl-wr1043nd-v4)
703 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
704 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
705 ucidef_set_led_switch "wan" "WAN" "tp-link:green:wan" "switch0" "0x20"
706 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
707 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
708 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
709 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
710 ;;
711 tl-wr2543n)
712 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
713 ;;
714 tube2h)
715 ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
716 ucidef_set_rssimon "wlan0" "200000" "1"
717 ucidef_set_led_rssi "signal1" "SIGNAL1" "alfa:red:signal1" "wlan0" "1" "100" "0" "13"
718 ucidef_set_led_rssi "signal2" "SIGNAL2" "alfa:orange:signal2" "wlan0" "26" "100" "-25" "13"
719 ucidef_set_led_rssi "signal3" "SIGNAL3" "alfa:green:signal3" "wlan0" "51" "100" "-50" "13"
720 ucidef_set_led_rssi "signal4" "SIGNAL4" "alfa:green:signal4" "wlan0" "76" "100" "-75" "13"
721 ;;
722 wndap360)
723 ucidef_set_led_power "power" "POWER GREEN" "netgear:green:power" "1"
724 ;;
725 wndr3700)
726 ucidef_set_led_default "wan" "WAN LED (green)" "netgear:green:wan" "0"
727 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
728 ;;
729 r6100)
730 ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0"
731 ucidef_set_led_usbdev "usb" "USB" "netgear:blue:usb" "1-1"
732 ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy1tpt"
733 ;;
734 wndr3700v4|\
735 wndr4300)
736 ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0.2"
737 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
738 ucidef_set_led_wlan "wlan2g" "WLAN2G" "netgear:green:wlan2g" "phy0tpt"
739 ucidef_set_led_wlan "wlan5g" "WLAN5G" "netgear:blue:wlan5g" "phy1tpt"
740 ;;
741 whr-g301n|\
742 whr-hp-g300n|\
743 whr-hp-gn)
744 ucidef_set_led_netdev "wan" "WAN" "buffalo:green:wan" "eth1"
745 ucidef_set_led_switch "lan1" "LAN1" "buffalo:green:lan1" "switch0" "0x02"
746 ucidef_set_led_switch "lan2" "LAN2" "buffalo:green:lan2" "switch0" "0x04"
747 ucidef_set_led_switch "lan3" "LAN3" "buffalo:green:lan3" "switch0" "0x08"
748 ucidef_set_led_switch "lan4" "LAN4" "buffalo:green:lan4" "switch0" "0x10"
749 ;;
750 wlae-ag300n)
751 ucidef_set_led_netdev "wireless" "WIRELESS" "buffalo:green:wireless" "wlan0"
752 ;;
753 wnr1000-v2|\
754 wnr2000-v3)
755 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
756 ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
757 ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
758 ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" "0x04"
759 ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" "0x04"
760 ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" "0x04"
761 ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" "0x04"
762 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02" "0x02"
763 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04" "0x02"
764 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08" "0x02"
765 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
766 ;;
767 wnr2000-v4)
768 ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
769 ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
770 ucidef_set_led_switch "lan1" "LAN1" "netgear:amber:lan1" "switch0" "0x02"
771 ucidef_set_led_switch "lan2" "LAN2" "netgear:amber:lan2" "switch0" "0x04"
772 ucidef_set_led_switch "lan3" "LAN3" "netgear:amber:lan3" "switch0" "0x08"
773 ucidef_set_led_switch "lan4" "LAN4" "netgear:amber:lan4" "switch0" "0x10"
774 ucidef_set_led_usbdev "usb" "USB" "netgear:amber:status" "1-1"
775 ;;
776 wnr2200)
777 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
778 ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
779 ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
780 ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" "0x04"
781 ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" "0x04"
782 ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" "0x04"
783 ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" "0x04"
784 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02" "0x02"
785 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04" "0x02"
786 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08" "0x02"
787 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
788 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
789 ;;
790 wnr612-v2)
791 ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
792 ucidef_set_led_netdev "wlan" "WLAN" "netgear:green:wlan" "wlan0"
793 ucidef_set_led_switch "lan1" "LAN1" "netgear:green:lan1" "switch0" "0x02" "0x0f"
794 ucidef_set_led_switch "lan2" "LAN2" "netgear:green:lan2" "switch0" "0x04" "0x0f"
795 ;;
796 wpn824n)
797 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
798 ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy0tpt"
799 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02"
800 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04"
801 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08"
802 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10"
803 ucidef_set_led_default "lan1green" "LAN1 (green)" "netgear:green:lan1" "0"
804 ucidef_set_led_default "lan2green" "LAN2 (green)" "netgear:green:lan2" "0"
805 ucidef_set_led_default "lan3green" "LAN3 (green)" "netgear:green:lan3" "0"
806 ucidef_set_led_default "lan4green" "LAN4 (green)" "netgear:green:lan4" "0"
807 ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
808 ucidef_set_led_default "wps1" "WPS1" "netgear:blue:wps1" "0"
809 ucidef_set_led_default "wps2" "WPS2" "netgear:blue:wps2" "0"
810 ucidef_set_led_default "status" "STATUS" "netgear:amber:status" "0"
811 ucidef_set_led_default "test" "TEST" "netgear:amber:test" "0"
812 ;;
813 wzr-hp-ag300h)
814 ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
815 ucidef_set_led_netdev "router" "ROUTER" "buffalo:green:router" "eth1"
816 ucidef_set_led_usbdev "usb" "USB" "buffalo:green:usb" "1-1"
817 ;;
818 wzr-hp-g300nh)
819 ucidef_set_led_wlan "wlan" "Wireless" "buffalo:green:wireless" "phy0tpt"
820 ucidef_set_led_netdev "router" "Router" "buffalo:green:router" "eth1"
821 ucidef_set_led_usbdev "usb" "USB" "buffalo:blue:usb" "1-1"
822 ;;
823 xd3200)
824 ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:blue:wlan2g" "phy1tpt"
825 ;;
826 z1)
827 ucidef_set_led_netdev "wlan1" "WLAN1" "$board:blue:tricolor0" "wlan1"
828 ;;
829 zbt-we1526)
830 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
831 ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x10"
832 ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
833 ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x04"
834 ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan4" "switch0" "0x02"
835 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
836 ;;
837 zcn-1523h-2)
838 ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
839 ;;
840 zcn-1523h-5)
841 ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
842 ucidef_set_led_netdev "lan2" "lan2" "zcn-1523h:green:lan2" "eth1"
843 ;;
844 esac
845
846 board_config_flush
847
848 exit 0