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