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