mkimage: fix validation of legacy images with custom magic
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / etc / board.d / 01_leds
1
2 . /lib/functions/uci-defaults.sh
3
4 board_config_update
5
6 board=$(board_name)
7
8 case "$board" in
9 8dev,carambola2)
10 ucidef_set_led_netdev "lan" "LAN" "orange:eth0" "eth0"
11 ucidef_set_led_switch "wan" "WAN" "orange:eth1" "switch0" "0x04"
12 ;;
13 alfa-network,ap121f|\
14 alfa-network,ap121fe|\
15 avm,fritz450e|\
16 glinet,6408|\
17 glinet,6416|\
18 glinet,gl-ar300m-lite|\
19 glinet,gl-ar300m16|\
20 pcs,cap324|\
21 tplink,cpe610-v1|\
22 tplink,cpe610-v2|\
23 tplink,tl-wa1201-v2)
24 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
25 ;;
26 alfa-network,n2q)
27 ucidef_set_led_netdev "lan2" "LAN2" "orange:lan2" "eth1"
28 ucidef_set_led_switch "lan1" "LAN1" "orange:lan1" "switch0" "0x10"
29 ucidef_set_rssimon "wlan0" "200000" "1"
30 ucidef_set_led_rssi "signal1" "SIGNAL1" "red:signal1" "wlan0" "1" "100"
31 ucidef_set_led_rssi "signal2" "SIGNAL2" "orange:signal2" "wlan0" "33" "100"
32 ucidef_set_led_rssi "signal3" "SIGNAL3" "green:signal3" "wlan0" "66" "100"
33 ;;
34 alfa-network,n5q)
35 ucidef_set_led_netdev "lan2" "LAN2" "green:lan2" "eth1"
36 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10"
37 ucidef_set_rssimon "wlan0" "200000" "1"
38 ucidef_set_led_rssi "signal1" "SIGNAL1" "red:signal1" "wlan0" "1" "100"
39 ucidef_set_led_rssi "signal2" "SIGNAL2" "orange:signal2" "wlan0" "25" "100"
40 ucidef_set_led_rssi "signal3" "SIGNAL3" "green:signal3" "wlan0" "50" "100"
41 ucidef_set_led_rssi "signal4" "SIGNAL4" "green:signal4" "wlan0" "75" "100"
42 ;;
43 alfa-network,pi-wifi4)
44 ucidef_set_led_netdev "lan_data" "LAN_DATA" "orange:lan_data" "eth0" "tx rx"
45 ucidef_set_led_netdev "lan_link" "LAN_LINK" "green:lan_link" "eth0" "link"
46 ;;
47 alfa-network,r36a)
48 ucidef_set_led_netdev "lan" "LAN" "blue:lan" "eth0"
49 ucidef_set_led_switch "wan" "WAN" "blue:wan" "switch0" "0x10"
50 ;;
51 alfa-network,tube-2hq)
52 ucidef_set_led_netdev "lan" "LAN" "blue:lan" "eth0"
53 ucidef_set_rssimon "wlan0" "200000" "1"
54 ucidef_set_led_rssi "signal1" "SIGNAL1" "red:signal1" "wlan0" "1" "100"
55 ucidef_set_led_rssi "signal2" "SIGNAL2" "orange:signal2" "wlan0" "25" "100"
56 ucidef_set_led_rssi "signal3" "SIGNAL3" "green:signal3" "wlan0" "50" "100"
57 ucidef_set_led_rssi "signal4" "SIGNAL4" "green:signal4" "wlan0" "75" "100"
58 ;;
59 asus,pl-ac56)
60 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x3e"
61 ucidef_set_led_netdev "wlan2g" "WLAN2G" "green:wlan2g" "wlan1" "link"
62 ucidef_set_led_netdev "wlan5g" "WLAN5G" "green:wlan5g" "wlan0" "link"
63 ;;
64 asus,rp-ac51)
65 ucidef_set_led_netdev "lan" "LAN" "blue:lan" "eth0"
66 ucidef_set_led_netdev "wlan2g" "WLAN2G" "blue:wlan2G" "wlan1" "link"
67 ucidef_set_led_netdev "wlan5g" "WLAN5G" "blue:wlan5G" "wlan0" "link"
68 ;;
69 asus,rp-ac66)
70 ucidef_set_rssimon "wlan0" "200000" "1"
71 ucidef_set_rssimon "wlan1" "200000" "1"
72 ucidef_set_led_rssi "rssilow-wlan0" "RSSILOW" "blue:rssilow-wlan0" "wlan0" "1" "1"
73 ucidef_set_led_rssi "rssimedium-wlan0" "RSSIMEDIUM" "red:rssimedium-wlan0" "wlan0" "1" "79"
74 ucidef_set_led_rssi "rssihigh-wlan0" "RSSIHIGH" "green:rssihigh-wlan0" "wlan0" "70" "100"
75 ucidef_set_led_rssi "rssilow-wlan1" "RSSILOW" "blue:rssilow-wlan1" "wlan1" "1" "1"
76 ucidef_set_led_rssi "rssimedium-wlan1" "RSSIMEDIUM" "red:rssimedium-wlan1" "wlan1" "1" "79"
77 ucidef_set_led_rssi "rssihigh-wlan1" "RSSIHIGH" "green:rssihigh-wlan1" "wlan1" "70" "100"
78 ;;
79 avm,fritz1750e)
80 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
81 ucidef_set_rssimon "wlan1" "200000" "1"
82 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssi0" "wlan1" "1" "100"
83 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssi1" "wlan1" "20" "100"
84 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssi2" "wlan1" "40" "100"
85 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssi3" "wlan1" "60" "100"
86 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssi4" "wlan1" "80" "100"
87 ;;
88 avm,fritz300e)
89 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
90 ucidef_set_rssimon "wlan0" "200000" "1"
91 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssi0" "wlan0" "1" "100"
92 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssi1" "wlan0" "20" "100"
93 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssi2" "wlan0" "40" "100"
94 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssi3" "wlan0" "60" "100"
95 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssi4" "wlan0" "80" "100"
96 ;;
97 avm,fritz4020|\
98 tplink,archer-c58-v1|\
99 tplink,archer-c59-v1|\
100 tplink,archer-c59-v2|\
101 tplink,archer-c60-v1|\
102 tplink,archer-c60-v2|\
103 tplink,archer-c60-v3|\
104 tplink,tl-wr841hp-v3)
105 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x1e"
106 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
107 ;;
108 avm,fritzdvbc)
109 ucidef_set_rssimon "wlan1" "200000" "1"
110 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssilow" "wlan1" "1" "100"
111 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssimediumlow" "wlan1" "20" "100"
112 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssimedium" "wlan1" "40" "100"
113 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan1" "60" "100"
114 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan1" "80" "100"
115 ;;
116 buffalo,wzr-hp-g300nh-rb|\
117 buffalo,wzr-hp-g300nh-s)
118 ucidef_set_led_netdev "router" "Router" "green:router" "eth1"
119 ;;
120 comfast,cf-e110n-v2)
121 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
122 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x02"
123 ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt"
124 ucidef_set_rssimon "wlan0" "200000" "1"
125 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
126 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
127 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
128 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
129 ;;
130 comfast,cf-e120a-v3)
131 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
132 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x04"
133 ucidef_set_rssimon "wlan0" "200000" "1"
134 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
135 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
136 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
137 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
138 ;;
139 comfast,cf-e130n-v2)
140 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
141 ucidef_set_rssimon "wlan0" "200000" "1"
142 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
143 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
144 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
145 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
146 ;;
147 comfast,cf-e313ac)
148 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x02"
149 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
150 ucidef_set_rssimon "wlan0" "200000" "1"
151 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
152 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
153 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
154 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
155 ;;
156 comfast,cf-e314n-v2)
157 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
158 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
159 ucidef_set_rssimon "wlan0" "200000" "1"
160 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
161 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
162 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
163 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
164 ;;
165 comfast,cf-e375ac)
166 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x04"
167 ucidef_set_led_switch "wan" "WAN" "red:wan" "switch0" "0x02"
168 ;;
169 comfast,cf-e5)
170 ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x02"
171 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
172 ucidef_set_rssimon "wlan0" "200000" "1"
173 ucidef_set_led_rssi "rssilow" "RSSILOW" "blue:rssi0" "wlan0" "1" "100"
174 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "blue:rssi1" "wlan0" "33" "100"
175 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "blue:rssi2" "wlan0" "66" "100"
176 ;;
177 comfast,cf-e560ac)
178 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
179 ucidef_set_led_switch "lan1" "LAN1" "blue:lan1" "switch0" "0x02"
180 ucidef_set_led_switch "lan2" "LAN2" "blue:lan2" "switch0" "0x04"
181 ucidef_set_led_switch "lan3" "LAN3" "blue:lan3" "switch0" "0x08"
182 ucidef_set_led_switch "lan4" "LAN4" "blue:lan4" "switch0" "0x10"
183 ;;
184 comfast,cf-ew72|\
185 openmesh,om2p-v2|\
186 openmesh,om2p-hs-v1|\
187 openmesh,om2p-hs-v2|\
188 openmesh,om2p-hs-v3|\
189 openmesh,om2p-lc|\
190 openmesh,om5p|\
191 telco,t1)
192 ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x02"
193 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
194 ;;
195 comfast,cf-wr752ac-v1|\
196 enterasys,ws-ap3705i|\
197 openmesh,mr900-v1|\
198 openmesh,mr900-v2|\
199 openmesh,mr1750-v1|\
200 openmesh,mr1750-v2|\
201 tplink,cpe710-v1)
202 ucidef_set_led_netdev "lan" "LAN" "blue:lan" "eth0"
203 ;;
204 compex,wpj344-16m|\
205 compex,wpj531-16m)
206 ucidef_set_rssimon "wlan0" "200000" "1"
207 ucidef_set_led_rssi "sig1" "SIG1" "red:sig1" "wlan0" "85" "100"
208 ucidef_set_led_rssi "sig2" "SIG2" "yellow:sig2" "wlan0" "75" "100"
209 ucidef_set_led_rssi "sig3" "SIG3" "green:sig3" "wlan0" "65" "100"
210 ucidef_set_led_rssi "sig4" "SIG4" "green:sig4" "wlan0" "50" "100"
211 ;;
212 devolo,dlan-pro-1200plus-ac|\
213 devolo,magic-2-wifi)
214 ucidef_set_led_netdev "plcw" "dLAN" "white:dlan" "eth0.1" "rx"
215 ;;
216 dlink,dap-1330-a1|\
217 dlink,dap-1365-a1)
218 ucidef_set_rssimon "wlan0" "200000" "1"
219 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "25"
220 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssimediumlow" "wlan0" "1" "100"
221 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
222 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
223 ;;
224 dlink,dir-859-a1)
225 ucidef_set_led_switch "internet" "WAN" "green:internet" "switch0" "0x20"
226 ;;
227 engenius,ens202ext-v1|\
228 engenius,enstationac-v1)
229 ucidef_set_rssimon "wlan0" "200000" "1"
230 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
231 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "amber:rssimedium" "wlan0" "33" "100"
232 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "67" "100"
233 ;;
234 engenius,ews511ap)
235 ucidef_set_led_netdev "lan1" "LAN1" "blue:lan1" "eth1"
236 ucidef_set_led_netdev "lan2" "LAN2" "blue:lan2" "eth0"
237 ;;
238 etactica,eg200)
239 ucidef_set_led_netdev "lan" "LAN" "red:eth0" "eth0"
240 ucidef_set_led_oneshot "modbus" "Modbus" "red:modbus" "100" "33"
241 ;;
242 glinet,gl-mifi|\
243 qxwlan,e600g-v2-8m|\
244 qxwlan,e600g-v2-16m|\
245 qxwlan,e600gac-v2-8m|\
246 qxwlan,e600gac-v2-16m|\
247 qxwlan,e750a-v4-8m|\
248 qxwlan,e750a-v4-16m)
249 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x02"
250 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
251 ;;
252 glinet,gl-x300b|\
253 glinet,gl-x750)
254 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
255 ;;
256 hak5,lan-turtle)
257 ucidef_set_led_netdev "wan" "WAN" "orange:system" "eth1"
258 ;;
259 joyit,jt-or750i|\
260 yuncore,xd3200)
261 ucidef_set_led_default "ath10k" "ath10k-disable" "ath10k-phy0" "0"
262 ;;
263 hiwifi,hc6361)
264 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
265 ucidef_set_led_wlan "wlan" "WLAN" "blue:wlan" "phy0tpt"
266 ;;
267 meraki,mr12|\
268 tplink,cpe210-v2|\
269 tplink,cpe210-v3)
270 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
271 ucidef_set_rssimon "wlan0" "200000" "1"
272 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:link1" "wlan0" "1" "100"
273 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:link2" "wlan0" "30" "100"
274 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "60" "100"
275 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "80" "100"
276 ;;
277 meraki,mr16)
278 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
279 ;;
280 netgear,wnr2200-8m|\
281 netgear,wnr2200-16m)
282 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "amber:wan" "eth0"
283 ucidef_set_led_switch "lan1green" "LAN1 (green)" "green:lan1" "switch0" "0x02" "0x04"
284 ucidef_set_led_switch "lan2green" "LAN2 (green)" "green:lan2" "switch0" "0x04" "0x04"
285 ucidef_set_led_switch "lan3green" "LAN3 (green)" "green:lan3" "switch0" "0x08" "0x04"
286 ucidef_set_led_switch "lan4green" "LAN4 (green)" "green:lan4" "switch0" "0x10" "0x04"
287 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "amber:lan1" "switch0" "0x02" "0x02"
288 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "amber:lan2" "switch0" "0x04" "0x02"
289 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "amber:lan3" "switch0" "0x08" "0x02"
290 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "amber:lan4" "switch0" "0x10" "0x02"
291 ;;
292 openmesh,om2p-v4|\
293 openmesh,om2p-hs-v4)
294 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth0"
295 ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x02"
296 ;;
297 openmesh,om2p-v1)
298 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth0"
299 ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x10"
300 ;;
301 openmesh,om5p-ac-v1)
302 ucidef_set_led_netdev "lan" "LAN" "blue:lan" "eth0"
303 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
304 ;;
305 openmesh,om5p-an)
306 ucidef_set_led_netdev "lan" "LAN" "blue:lan" "eth0"
307 ucidef_set_led_switch "wan" "WAN" "blue:wan" "switch0" "0x02"
308 ;;
309 pcs,cr3000)
310 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
311 ucidef_set_led_switch "lan1" "LAN1" "blue:lan1" "switch0" "0x04"
312 ucidef_set_led_switch "lan2" "LAN2" "blue:lan2" "switch0" "0x08"
313 ucidef_set_led_switch "lan3" "LAN3" "blue:lan3" "switch0" "0x10"
314 ucidef_set_led_switch "lan4" "LAN4" "blue:lan4" "switch0" "0x02"
315 ;;
316 qca,ap143-8m|\
317 qca,ap143-16m)
318 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
319 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x02"
320 ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x04"
321 ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x08"
322 ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x10"
323 ;;
324 qihoo,c301)
325 ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt"
326 ;;
327 samsung,wam250)
328 ucidef_set_led_netdev "lan" "LAN" "white:lan" "eth0"
329 ;;
330 teltonika,rut230-v1)
331 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
332 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x04"
333 ;;
334 tplink,archer-a7-v5|\
335 tplink,archer-c7-v4|\
336 tplink,archer-c7-v5)
337 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x02"
338 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x04"
339 ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
340 ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x10"
341 ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x20"
342 ;;
343 tplink,archer-a9-v6)
344 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x02"
345 ;;
346 tplink,archer-c2-v3|\
347 tplink,tl-wr1043nd-v4|\
348 tplink,tl-wr1043n-v5)
349 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x20"
350 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10"
351 ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
352 ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x04"
353 ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x02"
354 ;;
355 tplink,archer-c6-v2|\
356 tplink,archer-c6-v2-us)
357 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x3c"
358 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x02"
359 ;;
360 tplink,archer-c25-v1|\
361 tplink,tl-wr842n-v3)
362 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
363 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10"
364 ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
365 ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x04"
366 ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x02"
367 ;;
368 tplink,archer-d50-v1)
369 ucidef_set_led_switch "lan" "LAN" "white:lan" "switch0" "0x1c"
370 ucidef_set_led_switch "wan_data" "WAN Data" "white:internet" "switch0" "0x02" "" "tx rx"
371 ucidef_set_led_switch "wan_link" "WAN Link" "white:wan" "switch0" "0x02" "" "link"
372 ;;
373 tplink,archer-d7-v1|\
374 tplink,archer-d7b-v1)
375 ucidef_set_led_switch "lan" "LAN" "white:lan" "switch0" "0x3c"
376 ;;
377 tplink,cpe210-v1|\
378 tplink,cpe220-v2|\
379 tplink,cpe220-v3|\
380 tplink,cpe510-v1|\
381 tplink,wbs210-v1|\
382 tplink,wbs210-v2|\
383 tplink,wbs510-v1|\
384 tplink,wbs510-v2)
385 ucidef_set_led_netdev "lan0" "LAN0" "green:lan0" "eth1"
386 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10"
387 ucidef_set_rssimon "wlan0" "200000" "1"
388 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:link1" "wlan0" "1" "100"
389 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:link2" "wlan0" "30" "100"
390 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "60" "100"
391 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "80" "100"
392 ;;
393 tplink,cpe510-v2|\
394 tplink,cpe510-v3)
395 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
396 ucidef_set_rssimon "wlan0" "200000" "1"
397 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:link1" "wlan0" "1" "100" "0" "13"
398 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:link2" "wlan0" "26" "100" "-25" "13"
399 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "51" "100" "-50" "13"
400 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "76" "100" "-75" "13"
401 ;;
402 tplink,tl-wr902ac-v1)
403 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
404 ucidef_set_led_netdev "internet" "Internet" "green:internet" "eth0"
405 ;;
406 tplink,re355-v1|\
407 tplink,re450-v1|\
408 tplink,re450-v2|\
409 tplink,re450-v3|\
410 tplink,re455-v1)
411 ucidef_set_led_netdev "lan_data" "LAN Data" "green:lan_data" "eth0" "tx rx"
412 ucidef_set_led_netdev "lan_link" "LAN Link" "green:lan_link" "eth0" "link"
413 ;;
414 tplink,tl-mr6400-v1)
415 ucidef_set_led_switch "lan" "LAN" "white:lan" "switch0" "0x0e"
416 ucidef_set_led_netdev "wan" "WAN" "white:wan" "eth1"
417 ucidef_set_led_netdev "4g" "4G" "white:4g" "usb0"
418 ;;
419 tplink,tl-wpa8630-v1)
420 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x3c"
421 ;;
422 tplink,tl-wr841hp-v2|\
423 tplink,tl-wr842n-v2)
424 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
425 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x04"
426 ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
427 ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x10"
428 ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x02"
429 ;;
430 tplink,tl-wr941hp-v1)
431 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1" "link tx rx"
432 ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x1e"
433 ;;
434 trendnet,tew-823dru)
435 ucidef_set_led_netdev "wan" "WAN" "green:planet" "eth0"
436 ;;
437 ubnt,bullet-ac|\
438 ubnt,nanobeam-ac|\
439 ubnt,nanobeam-ac-gen2|\
440 ubnt,nanobeam-ac-xc|\
441 ubnt,nanostation-ac|\
442 ubnt,powerbeam-5ac-gen2)
443 ucidef_set_rssimon "wlan0" "200000" "1"
444 ucidef_set_led_rssi "rssilow" "RSSILOW" "blue:rssi0" "wlan0" "1" "100"
445 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "blue:rssi1" "wlan0" "26" "100"
446 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "blue:rssi2" "wlan0" "51" "100"
447 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "blue:rssi3" "wlan0" "76" "100"
448 ;;
449 ubnt,bullet-m-xw|\
450 ubnt,nanostation-loco-m-xw|\
451 ubnt,nanostation-m-xw|\
452 ubnt,powerbeam-m2-xw|\
453 ubnt,powerbeam-m5-xw)
454 ucidef_set_rssimon "wlan0" "200000" "1"
455 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:link1" "wlan0" "1" "100"
456 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "orange:link2" "wlan0" "26" "100"
457 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "51" "100"
458 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "76" "100"
459 ;;
460 wallys,dr531)
461 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
462 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x2"
463 ucidef_set_rssimon "wlan0" "200000" "1"
464 ucidef_set_led_rssi "sig1" "SIG1" "green:sig1" "wlan0" "1" "100"
465 ucidef_set_led_rssi "sig2" "SIG2" "green:sig2" "wlan0" "25" "100"
466 ucidef_set_led_rssi "sig3" "SIG3" "green:sig3" "wlan0" "50" "100"
467 ucidef_set_led_rssi "sig4" "SIG4" "green:sig4" "wlan0" "75" "100"
468 ;;
469 wd,mynet-wifi-rangeextender)
470 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
471 ucidef_set_rssimon "wlan0" "200000" "1"
472 ucidef_set_led_rssi "rssilow" "RSSILOW" "blue:rssi-low" "wlan0" "1" "100"
473 ucidef_set_led_rssi "rssimedium" "RSSIMED" "blue:rssi-med" "wlan0" "33" "100"
474 ucidef_set_led_rssi "rssihigh" "RSSIMAX" "blue:rssi-max" "wlan0" "66" "100"
475 ;;
476 xiaomi,aiot-ac2350)
477 ucidef_set_led_switch "wan" "WAN" "blue:wan" "switch0" "0x02"
478 ;;
479 yuncore,a770)
480 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
481 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x10"
482 ;;
483 zbtlink,zbt-wd323)
484 ucidef_set_led_switch "lan1" "LAN1" "orange:lan1" "switch0" "0x10"
485 ucidef_set_led_switch "lan2" "LAN2" "orange:lan2" "switch0" "0x08"
486 ;;
487 esac
488
489 board_config_flush
490
491 exit 0