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