add support for the NC-LINK SMART-300
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / uci-defaults / 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=$(ar71xx_board_name)
10
11 case "$board" in
12 airgateway)
13 ucidef_set_led_wlan "wlan" "WLAN" "ubnt:blue:wlan" "phy0tpt"
14 ;;
15 alfa-nx)
16 ucidef_set_led_netdev "wan" "WAN" "alfa:green:led_2" "eth0"
17 ucidef_set_led_netdev "lan" "LAN" "alfa:green:led_3" "eth1"
18 ;;
19
20 all0258n)
21 ucidef_set_rssimon "wlan0" "40000" "1"
22 ucidef_set_led_rssi "rssilow" "RSSILOW" "all0258n:red:rssilow" "wlan0" "1" "40" "0" "6"
23 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0258n:yellow:rssimedium" "wlan0" "30" "80" "-29" "5"
24 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0258n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
25 ;;
26
27 all0315n)
28 ucidef_set_rssimon "wlan0" "40000" "1"
29 ucidef_set_led_rssi "rssilow" "RSSILOW" "all0315n:red:rssilow" "wlan0" "1" "40" "0" "6"
30 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0315n:yellow:rssimedium" "wlan0" "30" "80" "-29" "5"
31 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0315n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
32 ;;
33
34 ap113)
35 ucidef_set_led_usbdev "usb" "USB" "ap113:green:usb" "1-1"
36 ;;
37
38 bullet-m | \
39 nanostation-m | \
40 rocket-m | \
41 nanostation-m-xw)
42 ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100" "0" "13"
43 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:orange:link2" "wlan0" "26" "100" "-25" "13"
44 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link3" "wlan0" "51" "100" "-50" "13"
45 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link4" "wlan0" "76" "100" "-75" "13"
46 ;;
47
48 bxu2000n-2-a1)
49 ucidef_set_led_wlan "wlan" "WLAN" "bhu:green:wlan" "phy0tpt"
50 ;;
51
52 cap4200ag)
53 ucidef_set_led_default "lan_green" "LAN_GREEN" "senao:green:lan" "1"
54 ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "senao:amber:wlan" "phy0tpt"
55 ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "senao:green:wlan" "phy1tpt"
56 ;;
57
58 carambola2)
59 ucidef_set_led_netdev "lan" "LAN" "carambola2:orange:eth0" "eth0"
60 ucidef_set_led_netdev "wan" "WAN" "carambola2:orange:eth1" "eth1"
61 ucidef_set_led_wlan "wlan" "WLAN" "carambola2:green:wlan" "phy0tpt"
62 ;;
63
64 db120)
65 ucidef_set_led_usbdev "usb" "USB" "db120:green:usb" "1-1"
66 ;;
67
68 eap300v2)
69 ucidef_set_led_netdev "lan" "LAN" "engenius:blue:lan" "eth0"
70 ucidef_set_led_wlan "wlan" "WLAN" "engenius:blue:wlan" "phy0tpt"
71 ;;
72
73 rb-750)
74 ucidef_set_led_default "act" "act" "rb750:green:act" "1"
75 ucidef_set_led_netdev "port1" "port1" "rb750:green:port1" "eth1"
76 ucidef_set_led_switch "port2" "port2" "rb750:green:port2" "switch0" "0x10"
77 ucidef_set_led_switch "port3" "port3" "rb750:green:port3" "switch0" "0x08"
78 ucidef_set_led_switch "port4" "port4" "rb750:green:port4" "switch0" "0x04"
79 ucidef_set_led_switch "port5" "port5" "rb750:green:port5" "switch0" "0x02"
80 ;;
81
82 rb-2011l|\
83 rb-2011uas|\
84 rb-2011uias|\
85 rb-2011uas-2hnd)
86 ucidef_set_led_switch "eth6" "ETH6" "rb:green:eth6" "switch1" "0x20"
87 ucidef_set_led_switch "eth7" "ETH7" "rb:green:eth7" "switch1" "0x10"
88 ucidef_set_led_switch "eth8" "ETH8" "rb:green:eth8" "switch1" "0x08"
89 ucidef_set_led_switch "eth9" "ETH9" "rb:green:eth9" "switch1" "0x04"
90 ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
91 ;;
92
93 dir-505-a1)
94 ucidef_set_led_netdev "lan" "LAN" "d-link:green:power" "eth1"
95 ;;
96
97 dir-600-a1|\
98 dir-615-e1|\
99 dir-615-e4)
100 ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
101 ucidef_set_led_switch "lan1" "LAN1" "d-link:green:lan1" "switch0" "0x02"
102 ucidef_set_led_switch "lan2" "LAN2" "d-link:green:lan2" "switch0" "0x04"
103 ucidef_set_led_switch "lan3" "LAN3" "d-link:green:lan3" "switch0" "0x08"
104 ucidef_set_led_switch "lan4" "LAN4" "d-link:green:lan4" "switch0" "0x10"
105 ;;
106
107 dir-825-b1)
108 ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1"
109 ;;
110
111 dir-825-c1)
112 ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1"
113 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:blue:wlan2g" "phy0tpt"
114 ;;
115
116 gl-inet)
117 ucidef_set_led_netdev "lan" "LAN" "gl-connect:green:lan" "eth1"
118 ucidef_set_led_wlan "wlan" "WLAN" "gl-connect:red:wlan" "phy0tpt"
119 ;;
120
121 esr900)
122 ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "engenius:blue:wlan-2g" "phy0tpt"
123 ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "engenius:blue:wlan-5g" "phy1tpt"
124 ;;
125
126 hiwifi-hc6361)
127 ucidef_set_led_netdev "inet" "INET" "hiwifi:blue:internet" "eth1"
128 ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt"
129 ;;
130
131 hornet-ub)
132 ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
133 ucidef_set_led_netdev "wan" "WAN" "alfa:blue:wan" "eth1"
134 ucidef_set_led_wlan "wlan" "WLAN" "alfa:blue:wlan" "phy0tpt"
135 ucidef_set_led_usbdev "usb" "USB" "alfa:blue:usb" "1-1"
136 ;;
137
138 mr600)
139 ucidef_set_led_wlan "wlan58" "WLAN58" "mr600:green:wlan58" "phy0tpt"
140 ;;
141
142 mynet-n600)
143 ucidef_set_led_netdev "wan" "WAN" "wd:blue:internet" "eth1"
144 ucidef_set_led_switch "lan1" "LAN1" "wd:green:lan1" "switch0" "0x02"
145 ucidef_set_led_switch "lan2" "LAN2" "wd:green:lan2" "switch0" "0x10"
146 ucidef_set_led_switch "lan3" "LAN3" "wd:green:lan3" "switch0" "0x08"
147 ucidef_set_led_switch "lan4" "LAN4" "wd:green:lan4" "switch0" "0x04"
148 ;;
149
150 mynet-rext)
151 ucidef_set_led_netdev "lan" "LAN" "wd:blue:ethernet" "eth0"
152 ucidef_set_rssimon "wlan0" "40000" "1"
153 ucidef_set_led_rssi "rssilow" "RSSILOW" "wd:blue:quality1" "wlan0" "1" "40" "0" "6"
154 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "wd:blue:quality2" "wlan0" "30" "80" "-29" "5"
155 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "wd:blue:quality3" "wlan0" "70" "100" "-69" "8"
156 ucidef_set_led_wlan "wlan" "WLAN" "wd:blue:wireless" "phy0tpt"
157 ;;
158
159 mzk-w04u)
160 ucidef_set_led_usbdev "usb" "USB" "planex:green:usb" "1-1"
161 ;;
162
163 mzk-w300nh)
164 ucidef_set_led_wlan "wlan" "WLAN" "planex:green:wlan" "phy0tpt"
165 ;;
166
167 nbg460n_550n_550nh)
168 ucidef_set_led_wlan "wlan" "WLAN" "nbg460n:green:wlan" "phy0tpt"
169 ;;
170
171 nbg6716)
172 ucidef_set_led_netdev "wan" "WAN" "zyxel:white:internet" "eth1"
173 ucidef_set_led_wlan "wlan" "WLAN" "zyxel:white:wifi2g" "phy1tpt"
174 ucidef_set_led_wlan "wlan5" "WLAN5" "zyxel:white:wifi5g" "phy0tpt"
175 ucidef_set_led_usbdev "usb1" "USB1" "zyxel:white:usb0" "1-1"
176 ucidef_set_led_usbdev "usb2" "USB2" "zyxel:white:usb1" "2-1"
177 ;;
178
179 om2p | \
180 om2pv2 | \
181 om2p-hs | \
182 om2p-hsv2 | \
183 om2p-lc)
184 ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
185 ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
186 ;;
187
188 om5p)
189 ucidef_set_led_netdev "port1" "port1" "om5p:blue:wan" "eth0"
190 ucidef_set_led_netdev "port2" "port2" "om5p:blue:lan" "eth1"
191 ;;
192
193 smart-300)
194 ucidef_set_led_netdev "wan" "WAN" "nc-link:green:wan" "eth0"
195 ucidef_set_led_switch "lan1" "LAN1" "nc-link:green:lan1" "switch0" "0x04"
196 ucidef_set_led_switch "lan2" "LAN2" "nc-link:green:lan2" "switch0" "0x08"
197 ucidef_set_led_switch "lan3" "LAN3" "nc-link:green:lan3" "switch0" "0x10"
198 ucidef_set_led_switch "lan4" "LAN4" "nc-link:green:lan4" "switch0" "0x02"
199 ucidef_set_led_wlan "wlan" "WLAN" "nc-link:green:wlan" "phy0tpt"
200 ;;
201
202 tew-712br)
203 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
204 ucidef_set_led_switch "lan1" "LAN1" "trendnet:green:lan1" "switch0" "0x02"
205 ucidef_set_led_switch "lan2" "LAN2" "trendnet:green:lan2" "switch0" "0x04"
206 ucidef_set_led_switch "lan3" "LAN3" "trendnet:green:lan3" "switch0" "0x08"
207 ucidef_set_led_switch "lan4" "LAN4" "trendnet:green:lan4" "switch0" "0x10"
208 ucidef_set_led_wlan "wlan" "WLAN" "trendnet:green:wlan" "phy0tpt"
209 ;;
210
211 tew-732br)
212 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
213 ;;
214
215 tl-mr11u | \
216 tl-mr3020 | \
217 tl-mr3040 | \
218 tl-mr3040-v2)
219 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
220 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
221 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
222 ;;
223
224 tl-mr3220 | \
225 tl-mr3420 )
226 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
227 ;;
228
229 tl-mr3220-v2)
230 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
231 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
232 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
233 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
234 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
235 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
236 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
237 ;;
238
239 tl-mr3420-v2)
240 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
241 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
242 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
243 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
244 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
245 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
246 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
247 ;;
248
249 tl-wa750re)
250 ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
251 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "phy0tpt"
252 ucidef_set_rssimon "wlan0" "40000" "1"
253 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:orange:signal1" "wlan0" "1" "100" "0" "13"
254 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:orange:signal2" "wlan0" "20" "100" "-19" "13"
255 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:orange:signal3" "wlan0" "40" "100" "-39" "13"
256 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:orange:signal4" "wlan0" "60" "100" "-59" "13"
257 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:orange:signal5" "wlan0" "80" "100" "-79" "13"
258 ;;
259
260 tl-wa850re)
261 ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
262 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
263 ucidef_set_rssimon "wlan0" "40000" "1"
264 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:blue:signal1" "wlan0" "1" "100" "0" "13"
265 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:blue:signal2" "wlan0" "20" "100" "-19" "13"
266 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:blue:signal3" "wlan0" "40" "100" "-39" "13"
267 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:blue:signal4" "wlan0" "60" "100" "-59" "13"
268 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
269 ;;
270
271 tl-wa860re)
272 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
273 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
274 ;;
275
276 tl-wa901nd)
277 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
278 ;;
279
280 tl-wa901nd-v2)
281 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
282 ;;
283
284 tl-wdr3500)
285 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
286 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
287 ;;
288
289 tl-wdr4300)
290 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1.1"
291 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "1-1.2"
292 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
293 ;;
294
295 archer-c5|\
296 archer-c7|\
297 tl-wdr4900-v2)
298 ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
299 ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
300 ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
301 ;;
302
303 tl-wr741nd)
304 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
305 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
306 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x04"
307 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
308 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
309 ;;
310
311 tl-wr741nd-v4)
312 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
313 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
314 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
315 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
316 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
317 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
318 ;;
319
320 tl-wr841n-v8)
321 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
322 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
323 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
324 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
325 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
326 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
327 ;;
328
329 tl-wa830re-v2)
330 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
331 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
332 ;;
333
334 tl-wr841n-v9)
335 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
336 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
337 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
338 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
339 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
340 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
341 ;;
342
343 tl-wr842n-v2)
344 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
345 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
346 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
347 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
348 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
349 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
350 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
351 ;;
352
353 tl-wa801nd-v2 | \
354 tl-wa901nd-v3)
355 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
356 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
357 ;;
358
359 tl-wr941nd | \
360 tl-wr1041n-v2)
361 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
362 ;;
363
364 tl-wr1043nd | \
365 tl-wr1043nd-v2)
366 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
367 ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
368 ;;
369
370 tl-wr2543n)
371 ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
372 ;;
373
374 tube2h)
375 ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
376 ucidef_set_rssimon "wlan0" "40000" "1"
377 ucidef_set_led_rssi "signal1" "SIGNAL1" "alfa:red:signal1" "wlan0" "1" "100" "0" "13"
378 ucidef_set_led_rssi "signal2" "SIGNAL2" "alfa:orange:signal2" "wlan0" "26" "100" "-25" "13"
379 ucidef_set_led_rssi "signal3" "SIGNAL3" "alfa:green:signal3" "wlan0" "51" "100" "-50" "13"
380 ucidef_set_led_rssi "signal4" "SIGNAL4" "alfa:green:signal4" "wlan0" "76" "100" "-75" "13"
381 ;;
382
383 wrt160nl)
384 ucidef_set_led_wlan "wlan" "WLAN" "wrt160nl:blue:wlan" "phy0tpt"
385 ;;
386
387 wndap360)
388 ucidef_set_led_power "power" "POWER GREEN" "netgear:green:power" "1"
389 ;;
390
391 wndr3700)
392 ucidef_set_led_default "wan" "WAN LED (green)" "netgear:green:wan" "0"
393 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
394 ;;
395
396 wndr3700v4 | \
397 wndr4300)
398 ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0.2"
399 ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
400 ucidef_set_led_wlan "wlan2g" "WLAN2G" "netgear:green:wlan2g" "phy0tpt"
401 ucidef_set_led_wlan "wlan5g" "WLAN5G" "netgear:blue:wlan5g" "phy1tpt"
402 ;;
403
404 whr-g301n |\
405 whr-hp-g300n |\
406 whr-hp-gn)
407 ucidef_set_led_netdev "wan" "WAN" "buffalo:green:wan" "eth1"
408 ucidef_set_led_switch "lan1" "LAN1" "buffalo:green:lan1" "switch0" "0x02"
409 ucidef_set_led_switch "lan2" "LAN2" "buffalo:green:lan2" "switch0" "0x04"
410 ucidef_set_led_switch "lan3" "LAN3" "buffalo:green:lan3" "switch0" "0x08"
411 ucidef_set_led_switch "lan4" "LAN4" "buffalo:green:lan4" "switch0" "0x10"
412 ;;
413
414 wlae-ag300n)
415 ucidef_set_led_netdev "wireless" "WIRELESS" "buffalo:green:wireless" "wlan0"
416 ;;
417
418 wzr-hp-ag300h)
419 ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
420 ucidef_set_led_netdev "router" "ROUTER" "buffalo:green:router" "eth1"
421 ucidef_set_led_usbdev "usb" "USB" "buffalo:green:usb" "1-1"
422 ;;
423
424 wzr-hp-g300nh)
425 ucidef_set_led_wlan "wlan" "Wireless" "buffalo:green:wireless" "phy0tpt"
426 ucidef_set_led_netdev "router" "Router" "buffalo:green:router" "eth1"
427 ucidef_set_led_usbdev "usb" "USB" "buffalo:blue:usb" "1-1"
428 ;;
429
430 zcn-1523h-2)
431 ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
432 ;;
433
434 zcn-1523h-5)
435 ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
436 ucidef_set_led_netdev "lan2" "lan2" "zcn-1523h:green:lan2" "eth1"
437 ;;
438 esac
439
440 ucidef_commit_leds
441
442 exit 0