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