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