summaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/generic/base-files/etc/board.d/01_leds
blob: f7d8ec0f8526a87bac09dd7c4ae69178ecdf9519 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
#!/bin/sh

. /lib/functions/uci-defaults.sh

board_config_update

board=$(board_name)

case "$board" in
8dev,carambola2)
	ucidef_set_led_netdev "lan" "LAN" "orange:eth0" "eth0"
	ucidef_set_led_switch "wan" "WAN" "orange:eth1" "switch0" "0x04"
	;;
alfa-network,ap121f|\
alfa-network,ap121fe|\
avm,fritz450e|\
glinet,6408|\
glinet,6416|\
glinet,gl-ar300m-lite|\
glinet,gl-ar300m16|\
pcs,cap324|\
tplink,cpe610-v1|\
tplink,cpe610-v2)
	ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
	;;
alfa-network,n2q)
	ucidef_set_led_netdev "lan2" "LAN2" "orange:lan2" "eth1"
	ucidef_set_led_switch "lan1" "LAN1" "orange:lan1" "switch0" "0x10"
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "signal1" "SIGNAL1" "red:signal1" "wlan0" "1" "100"
	ucidef_set_led_rssi "signal2" "SIGNAL2" "orange:signal2" "wlan0" "33" "100"
	ucidef_set_led_rssi "signal3" "SIGNAL3" "green:signal3" "wlan0" "66" "100"
	;;
alfa-network,n5q)
	ucidef_set_led_netdev "lan2" "LAN2" "green:lan2" "eth1"
	ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10"
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "signal1" "SIGNAL1" "red:signal1" "wlan0" "1" "100"
	ucidef_set_led_rssi "signal2" "SIGNAL2" "orange:signal2" "wlan0" "25" "100"
	ucidef_set_led_rssi "signal3" "SIGNAL3" "green:signal3" "wlan0" "50" "100"
	ucidef_set_led_rssi "signal4" "SIGNAL4" "green:signal4" "wlan0" "75" "100"
	;;
alfa-network,pi-wifi4)
	ucidef_set_led_netdev "lan_data" "LAN_DATA" "orange:lan_data" "eth0" "tx rx"
	ucidef_set_led_netdev "lan_link" "LAN_LINK" "green:lan_link" "eth0" "link"
	;;
alfa-network,r36a)
	ucidef_set_led_netdev "lan" "LAN" "blue:lan" "eth0"
	ucidef_set_led_switch "wan" "WAN" "blue:wan" "switch0" "0x10"
	;;
avm,fritz1750e)
	ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
	ucidef_set_rssimon "wlan1" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssi0" "wlan1" "1" "100"
	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssi1" "wlan1" "20" "100"
	ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssi2" "wlan1" "40" "100"
	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssi3" "wlan1" "60" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssi4" "wlan1" "80" "100"
	;;
avm,fritz300e)
	ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssi0" "wlan0" "1" "100"
	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssi1" "wlan0" "20" "100"
	ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssi2" "wlan0" "40" "100"
	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssi3" "wlan0" "60" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssi4" "wlan0" "80" "100"
	;;
avm,fritz4020|\
tplink,archer-c58-v1|\
tplink,archer-c59-v1|\
tplink,archer-c59-v2|\
tplink,archer-c60-v1|\
tplink,archer-c60-v2|\
tplink,archer-c60-v3)
	ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x1e"
	ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
	;;
avm,fritzdvbc)
	ucidef_set_rssimon "wlan1" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssilow" "wlan1" "1" "100"
	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssimediumlow" "wlan1" "20" "100"
	ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssimedium" "wlan1" "40" "100"
	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan1" "60" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan1" "80" "100"
	;;
comfast,cf-e110n-v2)
	ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
	ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x02"
	ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt"
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
	;;
comfast,cf-e120a-v3)
	ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
	ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x04"
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
	;;
comfast,cf-e130n-v2)
	ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
	;;
comfast,cf-e313ac)
	ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x02"
	ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
	;;
comfast,cf-e314n-v2)
	ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
	ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
	;;
comfast,cf-e5)
	ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x02"
	ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "blue:rssi0" "wlan0" "1" "100"
	ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "blue:rssi1" "wlan0" "33" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "blue:rssi2" "wlan0" "66" "100"
	;;
comfast,cf-e560ac)
	ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
	ucidef_set_led_switch "lan1" "LAN1" "blue:lan1" "switch0" "0x02"
	ucidef_set_led_switch "lan2" "LAN2" "blue:lan2" "switch0" "0x04"
	ucidef_set_led_switch "lan3" "LAN3" "blue:lan3" "switch0" "0x08"
	ucidef_set_led_switch "lan4" "LAN4" "blue:lan4" "switch0" "0x10"
	;;
comfast,cf-ew72|\
openmesh,om2p-v2|\
openmesh,om2p-hs-v1|\
openmesh,om2p-hs-v2|\
openmesh,om2p-hs-v3|\
openmesh,om2p-lc|\
openmesh,om5p|\
telco,t1)
	ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x02"
	ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
	;;
comfast,cf-wr752ac-v1|\
enterasys,ws-ap3705i|\
openmesh,mr900-v1|\
openmesh,mr900-v2|\
openmesh,mr1750-v1|\
openmesh,mr1750-v2)
	ucidef_set_led_netdev "lan" "LAN" "blue:lan" "eth0"
	;;
compex,wpj344-16m|\
compex,wpj531-16m)
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "sig1" "SIG1" "red:sig1" "wlan0" "85" "100"
	ucidef_set_led_rssi "sig2" "SIG2" "yellow:sig2" "wlan0" "75" "100"
	ucidef_set_led_rssi "sig3" "SIG3" "green:sig3" "wlan0" "65" "100"
	ucidef_set_led_rssi "sig4" "SIG4" "green:sig4" "wlan0" "50" "100"
	;;
devolo,magic-2-wifi)
	ucidef_set_led_netdev "plcw" "dLAN" "white:dlan" "eth0.1" "rx"
	;;
dlink,dap-1330-a1|\
dlink,dap-1365-a1)
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "25"
	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssimediumlow" "wlan0" "1" "100"
	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
	;;
dlink,dir-859-a1)
	ucidef_set_led_switch "internet" "WAN" "green:internet" "switch0" "0x20"
	;;
engenius,ens202ext-v1|\
engenius,enstationac-v1)
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1"  "100"
	ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "amber:rssimedium" "wlan0" "33" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "67" "100"
	;;
engenius,ews511ap)
	ucidef_set_led_netdev "lan1" "LAN1" "blue:lan1" "eth1"
	ucidef_set_led_netdev "lan2" "LAN2" "blue:lan2" "eth0"
	;;
etactica,eg200)
	ucidef_set_led_netdev "lan" "LAN" "red:eth0" "eth0"
	ucidef_set_led_oneshot "modbus" "Modbus" "red:modbus" "100" "33"
	;;
glinet,gl-mifi|\
qxwlan,e600g-v2-8m|\
qxwlan,e600g-v2-16m|\
qxwlan,e600gac-v2-8m|\
qxwlan,e600gac-v2-16m|\
qxwlan,e750a-v4-8m|\
qxwlan,e750a-v4-16m)
	ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x02"
	ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
	;;
glinet,gl-x750)
	ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
	;;
hak5,lan-turtle)
	ucidef_set_led_netdev "wan" "WAN" "orange:system" "eth1"
	;;
meraki,mr12|\
tplink,cpe210-v2|\
tplink,cpe210-v3)
	ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "green:link1" "wlan0" "1" "100"
	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:link2" "wlan0" "30" "100"
	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "60" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "80" "100"
	;;
meraki,mr16)
	ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
	;;
netgear,wnr2200-8m|\
netgear,wnr2200-16m)
	ucidef_set_led_netdev "wan-amber" "WAN (amber)" "amber:wan" "eth0"
	ucidef_set_led_switch "lan1green" "LAN1 (green)" "green:lan1" "switch0" "0x02" "0x04"
	ucidef_set_led_switch "lan2green" "LAN2 (green)" "green:lan2" "switch0" "0x04" "0x04"
	ucidef_set_led_switch "lan3green" "LAN3 (green)" "green:lan3" "switch0" "0x08" "0x04"
	ucidef_set_led_switch "lan4green" "LAN4 (green)" "green:lan4" "switch0" "0x10" "0x04"
	ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "amber:lan1" "switch0" "0x02" "0x02"
	ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "amber:lan2" "switch0" "0x04" "0x02"
	ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "amber:lan3" "switch0" "0x08" "0x02"
	ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "amber:lan4" "switch0" "0x10" "0x02"
	;;
openmesh,om2p-v4|\
openmesh,om2p-hs-v4)
	ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth0"
	ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x02"
	;;
pcs,cr3000)
	ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
	ucidef_set_led_switch "lan1" "LAN1" "blue:lan1" "switch0" "0x04"
	ucidef_set_led_switch "lan2" "LAN2" "blue:lan2" "switch0" "0x08"
	ucidef_set_led_switch "lan3" "LAN3" "blue:lan3" "switch0" "0x10"
	ucidef_set_led_switch "lan4" "LAN4" "blue:lan4" "switch0" "0x02"
	;;
qihoo,c301)
	ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt"
	;;
samsung,wam250)
	ucidef_set_led_netdev "lan" "LAN" "white:lan" "eth0"
	;;
tplink,archer-a7-v5|\
tplink,archer-c7-v4|\
tplink,archer-c7-v5)
	ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x02"
	ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x04"
	ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
	ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x10"
	ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x20"
	;;
tplink,archer-c2-v3|\
tplink,tl-wr1043nd-v4|\
tplink,tl-wr1043n-v5)
	ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x20"
	ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10"
	ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
	ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x04"
	ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x02"
	;;
tplink,archer-c6-v2|\
tplink,archer-c6-v2-us)
	ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x3c"
	ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x02"
	;;
tplink,archer-c25-v1|\
tplink,tl-wr842n-v3)
	ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
	ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10"
	ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
	ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x04"
	ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x02"
	;;
tplink,archer-d50-v1)
	ucidef_set_led_switch "lan" "LAN" "white:lan" "switch0" "0x1c"
	ucidef_set_led_switch "wan_data" "WAN Data" "white:internet" "switch0" "0x02" "" "tx rx"
	ucidef_set_led_switch "wan_link" "WAN Link" "white:wan" "switch0" "0x02" "" "link"
	;;
tplink,archer-d7-v1|\
tplink,archer-d7b-v1)
	ucidef_set_led_switch "lan" "LAN" "white:lan" "switch0" "0x3c"
	;;
tplink,cpe210-v1|\
tplink,cpe220-v2|\
tplink,cpe220-v3|\
tplink,cpe510-v1|\
tplink,wbs210-v1|\
tplink,wbs210-v2|\
tplink,wbs510-v1|\
tplink,wbs510-v2)
	ucidef_set_led_netdev "lan0" "LAN0" "green:lan0" "eth1"
	ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10"
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "green:link1" "wlan0" "1" "100"
	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:link2" "wlan0" "30" "100"
	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "60" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "80" "100"
	;;
tplink,cpe510-v2|\
tplink,cpe510-v3)
	ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "green:link1" "wlan0" "1" "100" "0" "13"
	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:link2" "wlan0" "26" "100" "-25" "13"
	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "51" "100" "-50" "13"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "76" "100" "-75" "13"
	;;
tplink,tl-wr902ac-v1)
	ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
	ucidef_set_led_netdev "internet" "Internet" "green:internet" "eth0"
	;;
tplink,re355-v1|\
tplink,re450-v1|\
tplink,re450-v2|\
tplink,re450-v3)
	ucidef_set_led_netdev "lan_data" "LAN Data" "green:lan_data" "eth0" "tx rx"
	ucidef_set_led_netdev "lan_link" "LAN Link" "green:lan_link" "eth0" "link"
	;;
tplink,tl-mr6400-v1)
	ucidef_set_led_switch "lan" "LAN" "white:lan" "switch0" "0x0e"
	ucidef_set_led_netdev "wan" "WAN" "white:wan" "eth1"
	ucidef_set_led_netdev "4g" "4G" "white:4g" "usb0"
	;;
tplink,tl-wpa8630-v1|\
tplink,tl-wpa8630p-v2-int|\
tplink,tl-wpa8630p-v2.0-eu|\
tplink,tl-wpa8630p-v2.1-eu)
	ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x3c"
	;;
tplink,tl-wr842n-v2)
	ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
	ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x04"
	ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
	ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x10"
	ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x02"
	;;
trendnet,tew-823dru)
	ucidef_set_led_netdev "wan" "WAN" "green:planet" "eth0"
	;;
ubnt,bullet-ac|\
ubnt,nanobeam-ac|\
ubnt,nanobeam-ac-gen2|\
ubnt,nanostation-ac|\
ubnt,powerbeam-5ac-gen2)
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "blue:rssi0" "wlan0" "1" "100"
	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "blue:rssi1" "wlan0" "26" "100"
	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "blue:rssi2" "wlan0" "51" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "blue:rssi3" "wlan0" "76" "100"
	;;
ubnt,bullet-m-ar7240|\
ubnt,bullet-m-ar7241|\
ubnt,bullet-m-xw|\
ubnt,nanobridge-m|\
ubnt,nanostation-loco-m|\
ubnt,nanostation-loco-m-xw|\
ubnt,nanostation-m|\
ubnt,nanostation-m-xw|\
ubnt,picostation-m|\
ubnt,powerbridge-m|\
ubnt,rocket-m)
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "red:link1" "wlan0" "1" "100"
	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "orange:link2" "wlan0" "26" "100"
	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "51" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "76" "100"
	;;
wallys,dr531)
	ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
	ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x2"
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "sig1" "SIG1" "green:sig1" "wlan0" "1" "100"
	ucidef_set_led_rssi "sig2" "SIG2" "green:sig2" "wlan0" "25" "100"
	ucidef_set_led_rssi "sig3" "SIG3" "green:sig3" "wlan0" "50" "100"
	ucidef_set_led_rssi "sig4" "SIG4" "green:sig4" "wlan0" "75" "100"
	;;
wd,mynet-wifi-rangeextender)
	ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "blue:rssi-low" "wlan0" "1" "100"
	ucidef_set_led_rssi "rssimedium" "RSSIMED" "blue:rssi-med" "wlan0" "33" "100"
	ucidef_set_led_rssi "rssihigh" "RSSIMAX" "blue:rssi-max" "wlan0" "66" "100"
	;;
yuncore,a770)
	ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
	ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x10"
	;;
zbtlink,zbt-wd323)
	ucidef_set_led_switch "lan1" "LAN1" "orange:lan1" "switch0" "0x10"
	ucidef_set_led_switch "lan2" "LAN2" "orange:lan2" "switch0" "0x08"
	;;
esac

board_config_flush

exit 0