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