rtl838x: remove model name from LED labels
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / etc / board.d / 01_leds
1 #!/bin/sh
2
3 . /lib/functions/uci-defaults.sh
4
5 board_config_update
6
7 board=$(board_name)
8
9 case "$board" in
10 8dev,carambola2)
11 ucidef_set_led_netdev "lan" "LAN" "orange:eth0" "eth0"
12 ucidef_set_led_switch "wan" "WAN" "orange:eth1" "switch0" "0x04"
13 ;;
14 alfa-network,ap121f|\
15 alfa-network,ap121fe|\
16 avm,fritz450e|\
17 glinet,6408|\
18 glinet,6416|\
19 glinet,gl-ar300m-lite|\
20 glinet,gl-ar300m16|\
21 pcs,cap324|\
22 tplink,cpe610-v1|\
23 tplink,cpe610-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,r36a)
44 ucidef_set_led_netdev "lan" "LAN" "blue:lan" "eth0"
45 ucidef_set_led_switch "wan" "WAN" "blue:wan" "switch0" "0x10"
46 ;;
47 avm,fritz1750e)
48 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
49 ucidef_set_rssimon "wlan1" "200000" "1"
50 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssi0" "wlan1" "1" "100"
51 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssi1" "wlan1" "20" "100"
52 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssi2" "wlan1" "40" "100"
53 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssi3" "wlan1" "60" "100"
54 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssi4" "wlan1" "80" "100"
55 ;;
56 avm,fritz300e)
57 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
58 ucidef_set_rssimon "wlan0" "200000" "1"
59 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssi0" "wlan0" "1" "100"
60 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssi1" "wlan0" "20" "100"
61 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssi2" "wlan0" "40" "100"
62 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssi3" "wlan0" "60" "100"
63 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssi4" "wlan0" "80" "100"
64 ;;
65 avm,fritz4020|\
66 tplink,archer-c58-v1|\
67 tplink,archer-c59-v1|\
68 tplink,archer-c59-v2|\
69 tplink,archer-c60-v1|\
70 tplink,archer-c60-v2|\
71 tplink,archer-c60-v3)
72 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x1e"
73 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
74 ;;
75 avm,fritzdvbc)
76 ucidef_set_rssimon "wlan1" "200000" "1"
77 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssilow" "wlan1" "1" "100"
78 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssimediumlow" "wlan1" "20" "100"
79 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssimedium" "wlan1" "40" "100"
80 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan1" "60" "100"
81 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan1" "80" "100"
82 ;;
83 comfast,cf-e110n-v2)
84 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
85 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x02"
86 ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt"
87 ucidef_set_rssimon "wlan0" "200000" "1"
88 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
89 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
90 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
91 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
92 ;;
93 comfast,cf-e120a-v3)
94 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
95 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x04"
96 ucidef_set_rssimon "wlan0" "200000" "1"
97 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
98 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
99 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
100 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
101 ;;
102 comfast,cf-e130n-v2)
103 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
104 ucidef_set_rssimon "wlan0" "200000" "1"
105 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
106 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
107 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
108 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
109 ;;
110 comfast,cf-e313ac)
111 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x02"
112 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
113 ucidef_set_rssimon "wlan0" "200000" "1"
114 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
115 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
116 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
117 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
118 ;;
119 comfast,cf-e314n-v2)
120 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
121 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
122 ucidef_set_rssimon "wlan0" "200000" "1"
123 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
124 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
125 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
126 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
127 ;;
128 comfast,cf-e5)
129 ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x02"
130 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
131 ucidef_set_rssimon "wlan0" "200000" "1"
132 ucidef_set_led_rssi "rssilow" "RSSILOW" "blue:rssi0" "wlan0" "1" "100"
133 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "blue:rssi1" "wlan0" "33" "100"
134 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "blue:rssi2" "wlan0" "66" "100"
135 ;;
136 comfast,cf-e560ac)
137 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
138 ucidef_set_led_switch "lan1" "LAN1" "blue:lan1" "switch0" "0x02"
139 ucidef_set_led_switch "lan2" "LAN2" "blue:lan2" "switch0" "0x04"
140 ucidef_set_led_switch "lan3" "LAN3" "blue:lan3" "switch0" "0x08"
141 ucidef_set_led_switch "lan4" "LAN4" "blue:lan4" "switch0" "0x10"
142 ;;
143 comfast,cf-ew72|\
144 telco,t1)
145 ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x02"
146 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
147 ;;
148 comfast,cf-wr752ac-v1|\
149 engenius,ecb1750|\
150 enterasys,ws-ap3705i)
151 ucidef_set_led_netdev "lan" "LAN" "blue:lan" "eth0"
152 ;;
153 compex,wpj344-16m|\
154 compex,wpj531-16m)
155 ucidef_set_rssimon "wlan0" "200000" "1"
156 ucidef_set_led_rssi "sig1" "SIG1" "red:sig1" "wlan0" "85" "100"
157 ucidef_set_led_rssi "sig2" "SIG2" "yellow:sig2" "wlan0" "75" "100"
158 ucidef_set_led_rssi "sig3" "SIG3" "green:sig3" "wlan0" "65" "100"
159 ucidef_set_led_rssi "sig4" "SIG4" "green:sig4" "wlan0" "50" "100"
160 ;;
161 devolo,magic-2-wifi)
162 ucidef_set_led_netdev "plcw" "dLAN" "white:dlan" "eth0.1" "rx"
163 ;;
164 dlink,dap-1330-a1|\
165 dlink,dap-1365-a1)
166 ucidef_set_rssimon "wlan0" "200000" "1"
167 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "25"
168 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssimediumlow" "wlan0" "1" "100"
169 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
170 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
171 ;;
172 dlink,dir-859-a1)
173 ucidef_set_led_switch "internet" "WAN" "green:internet" "switch0" "0x20"
174 ;;
175 engenius,enh202-v1)
176 ucidef_set_led_switch "lan" "LAN" "amber:lan" "switch0" "0x10"
177 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
178 ucidef_set_rssimon "wlan0" "200000" "1"
179 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
180 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "amber:rssimedium" "wlan0" "33" "100"
181 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "67" "100"
182 ;;
183 engenius,ens202ext-v1)
184 ucidef_set_rssimon "wlan0" "200000" "1"
185 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
186 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "amber:rssimedium" "wlan0" "33" "100"
187 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "67" "100"
188 ;;
189 engenius,ews511ap)
190 ucidef_set_led_netdev "lan1" "LAN1" "blue:lan1" "eth1"
191 ucidef_set_led_netdev "lan2" "LAN2" "blue:lan2" "eth0"
192 ;;
193 etactica,eg200)
194 ucidef_set_led_netdev "lan" "LAN" "red:eth0" "eth0"
195 ucidef_set_led_oneshot "modbus" "Modbus" "red:modbus" "100" "33"
196 ;;
197 glinet,gl-mifi)
198 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x02"
199 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
200 ;;
201 glinet,gl-x750)
202 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
203 ;;
204 hak5,lan-turtle)
205 ucidef_set_led_netdev "wan" "WAN" "orange:system" "eth1"
206 ;;
207 meraki,mr16)
208 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
209 ;;
210 netgear,wnr2200-8m|\
211 netgear,wnr2200-16m)
212 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "amber:wan" "eth0"
213 ucidef_set_led_switch "lan1green" "LAN1 (green)" "green:lan1" "switch0" "0x02" "0x04"
214 ucidef_set_led_switch "lan2green" "LAN2 (green)" "green:lan2" "switch0" "0x04" "0x04"
215 ucidef_set_led_switch "lan3green" "LAN3 (green)" "green:lan3" "switch0" "0x08" "0x04"
216 ucidef_set_led_switch "lan4green" "LAN4 (green)" "green:lan4" "switch0" "0x10" "0x04"
217 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "amber:lan1" "switch0" "0x02" "0x02"
218 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "amber:lan2" "switch0" "0x04" "0x02"
219 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "amber:lan3" "switch0" "0x08" "0x02"
220 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "amber:lan4" "switch0" "0x10" "0x02"
221 ;;
222 pcs,cr3000)
223 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
224 ucidef_set_led_switch "lan1" "LAN1" "blue:lan1" "switch0" "0x04"
225 ucidef_set_led_switch "lan2" "LAN2" "blue:lan2" "switch0" "0x08"
226 ucidef_set_led_switch "lan3" "LAN3" "blue:lan3" "switch0" "0x10"
227 ucidef_set_led_switch "lan4" "LAN4" "blue:lan4" "switch0" "0x02"
228 ;;
229 qihoo,c301)
230 ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt"
231 ;;
232 samsung,wam250)
233 ucidef_set_led_netdev "lan" "LAN" "white:lan" "eth0"
234 ;;
235 tplink,archer-a7-v5|\
236 tplink,archer-c7-v4|\
237 tplink,archer-c7-v5)
238 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x02"
239 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x04"
240 ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
241 ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x10"
242 ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x20"
243 ;;
244 tplink,archer-c2-v3|\
245 tplink,tl-wr1043nd-v4|\
246 tplink,tl-wr1043n-v5)
247 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x20"
248 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10"
249 ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
250 ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x04"
251 ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x02"
252 ;;
253 tplink,archer-c6-v2|\
254 tplink,archer-c6-v2-us)
255 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x3c"
256 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x02"
257 ;;
258 tplink,archer-c25-v1|\
259 tplink,tl-wr842n-v3)
260 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
261 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10"
262 ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
263 ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x04"
264 ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x02"
265 ;;
266 tplink,archer-d50-v1)
267 ucidef_set_led_switch "lan" "LAN" "white:lan" "switch0" "0x1c"
268 ucidef_set_led_switch "wan_data" "WAN Data" "white:internet" "switch0" "0x02" "" "tx rx"
269 ucidef_set_led_switch "wan_link" "WAN Link" "white:wan" "switch0" "0x02" "" "link"
270 ;;
271 tplink,archer-d7-v1|\
272 tplink,archer-d7b-v1)
273 ucidef_set_led_switch "lan" "LAN" "white:lan" "switch0" "0x3c"
274 ;;
275 tplink,cpe210-v1|\
276 tplink,cpe220-v2|\
277 tplink,cpe220-v3|\
278 tplink,cpe510-v1|\
279 tplink,wbs210-v1|\
280 tplink,wbs210-v2|\
281 tplink,wbs510-v1|\
282 tplink,wbs510-v2)
283 ucidef_set_led_netdev "lan0" "LAN0" "green:lan0" "eth1"
284 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10"
285 ucidef_set_rssimon "wlan0" "200000" "1"
286 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:link1" "wlan0" "1" "100"
287 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:link2" "wlan0" "30" "100"
288 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "60" "100"
289 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "80" "100"
290 ;;
291 tplink,cpe210-v2|\
292 tplink,cpe210-v3)
293 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
294 ucidef_set_rssimon "wlan0" "200000" "1"
295 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:link1" "wlan0" "1" "100"
296 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:link2" "wlan0" "30" "100"
297 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "60" "100"
298 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "80" "100"
299 ;;
300 tplink,cpe510-v2|\
301 tplink,cpe510-v3)
302 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
303 ucidef_set_rssimon "wlan0" "200000" "1"
304 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:link1" "wlan0" "1" "100" "0" "13"
305 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:link2" "wlan0" "26" "100" "-25" "13"
306 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "51" "100" "-50" "13"
307 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "76" "100" "-75" "13"
308 ;;
309 tplink,tl-wr902ac-v1)
310 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
311 ucidef_set_led_netdev "internet" "Internet" "green:internet" "eth0"
312 ;;
313 tplink,re355-v1|\
314 tplink,re450-v1|\
315 tplink,re450-v2|\
316 tplink,re450-v3)
317 ucidef_set_led_netdev "lan_data" "LAN Data" "green:lan_data" "eth0" "tx rx"
318 ucidef_set_led_netdev "lan_link" "LAN Link" "green:lan_link" "eth0" "link"
319 ;;
320 tplink,tl-mr6400-v1)
321 ucidef_set_led_switch "lan" "LAN" "white:lan" "switch0" "0x0e"
322 ucidef_set_led_netdev "wan" "WAN" "white:wan" "eth1"
323 ucidef_set_led_netdev "4g" "4G" "white:4g" "usb0"
324 ;;
325 tplink,tl-wpa8630-v1|\
326 tplink,tl-wpa8630p-v2-int|\
327 tplink,tl-wpa8630p-v2.0-eu|\
328 tplink,tl-wpa8630p-v2.1-eu)
329 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x3c"
330 ;;
331 tplink,tl-wr842n-v2)
332 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
333 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x04"
334 ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
335 ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x10"
336 ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x02"
337 ;;
338 trendnet,tew-823dru)
339 ucidef_set_led_netdev "wan" "WAN" "green:planet" "eth0"
340 ;;
341 ubnt,bullet-m-ar7240|\
342 ubnt,bullet-m-ar7241|\
343 ubnt,bullet-m-xw|\
344 ubnt,nanobridge-m|\
345 ubnt,nanostation-loco-m|\
346 ubnt,nanostation-loco-m-xw|\
347 ubnt,nanostation-m|\
348 ubnt,nanostation-m-xw|\
349 ubnt,picostation-m|\
350 ubnt,powerbridge-m|\
351 ubnt,rocket-m)
352 ucidef_set_rssimon "wlan0" "200000" "1"
353 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:link1" "wlan0" "1" "100"
354 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "orange:link2" "wlan0" "26" "100"
355 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "51" "100"
356 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "76" "100"
357 ;;
358 ubnt,nanobeam-ac|\
359 ubnt,nanostation-ac|\
360 ubnt,powerbeam-5ac-gen2)
361 ucidef_set_rssimon "wlan0" "200000" "1"
362 ucidef_set_led_rssi "rssilow" "RSSILOW" "blue:rssi0" "wlan0" "1" "100"
363 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "blue:rssi1" "wlan0" "26" "100"
364 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "blue:rssi2" "wlan0" "51" "100"
365 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "blue:rssi3" "wlan0" "76" "100"
366 ;;
367 wallys,dr531)
368 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
369 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x2"
370 ucidef_set_rssimon "wlan0" "200000" "1"
371 ucidef_set_led_rssi "sig1" "SIG1" "green:sig1" "wlan0" "1" "100"
372 ucidef_set_led_rssi "sig2" "SIG2" "green:sig2" "wlan0" "25" "100"
373 ucidef_set_led_rssi "sig3" "SIG3" "green:sig3" "wlan0" "50" "100"
374 ucidef_set_led_rssi "sig4" "SIG4" "green:sig4" "wlan0" "75" "100"
375 ;;
376 wd,mynet-wifi-rangeextender)
377 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
378 ucidef_set_rssimon "wlan0" "200000" "1"
379 ucidef_set_led_rssi "rssilow" "RSSILOW" "blue:rssi-low" "wlan0" "1" "100"
380 ucidef_set_led_rssi "rssimedium" "RSSIMED" "blue:rssi-med" "wlan0" "33" "100"
381 ucidef_set_led_rssi "rssihigh" "RSSIMAX" "blue:rssi-max" "wlan0" "66" "100"
382 ;;
383 yuncore,a770)
384 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
385 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x10"
386 ;;
387 zbtlink,zbt-wd323)
388 ucidef_set_led_switch "lan1" "LAN1" "orange:lan1" "switch0" "0x10"
389 ucidef_set_led_switch "lan2" "LAN2" "orange:lan2" "switch0" "0x08"
390 ;;
391 esac
392
393 board_config_flush
394
395 exit 0