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