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