ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.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 boardname="${board##*,}"
9
10 case "$board" in
11 8dev,carambola2)
12 ucidef_set_led_netdev "lan" "LAN" "$boardname:orange:eth0" "eth0"
13 ucidef_set_led_switch "wan" "WAN" "$boardname:orange:eth1" "switch0" "0x04"
14 ;;
15 alfa-network,ap121f|\
16 avm,fritz450e)
17 ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
18 ;;
19 avm,fritz1750e)
20 ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
21 ucidef_set_rssimon "wlan1" "200000" "1"
22 ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:green:rssi0" "wlan1" "1" "100"
23 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:green:rssi1" "wlan1" "20" "100"
24 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "$boardname:green:rssi2" "wlan1" "40" "100"
25 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssi3" "wlan1" "60" "100"
26 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssi4" "wlan1" "80" "100"
27 ;;
28 avm,fritz300e)
29 ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
30 ucidef_set_rssimon "wlan0" "200000" "1"
31 ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:green:rssi0" "wlan0" "1" "100"
32 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:green:rssi1" "wlan0" "20" "100"
33 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "$boardname:green:rssi2" "wlan0" "40" "100"
34 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssi3" "wlan0" "60" "100"
35 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssi4" "wlan0" "80" "100"
36 ;;
37 avm,fritz4020)
38 ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth1"
39 ucidef_set_led_switch "lan" "LAN" "$boardname:green:lan" "switch0" "0x1E"
40 ;;
41 avm,fritzdvbc)
42 ucidef_set_rssimon "wlan1" "200000" "1"
43 ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:green:rssilow" "wlan1" "1" "100"
44 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:green:rssimediumlow" "wlan1" "20" "100"
45 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "$boardname:green:rssimedium" "wlan1" "40" "100"
46 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssimediumhigh" "wlan1" "60" "100"
47 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssihigh" "wlan1" "80" "100"
48 ;;
49 comfast,cf-e110n-v2)
50 ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth1"
51 ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x02"
52 ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
53 ucidef_set_rssimon "wlan0" "200000" "1"
54 ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:red:rssilow" "wlan0" "1" "100"
55 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:red:rssimediumlow" "wlan0" "26" "100"
56 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssimediumhigh" "wlan0" "51" "100"
57 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssihigh" "wlan0" "76" "100"
58 ;;
59 comfast,cf-e120a-v3)
60 ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth1"
61 ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x04"
62 ucidef_set_rssimon "wlan0" "200000" "1"
63 ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:red:rssilow" "wlan0" "1" "100"
64 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:red:rssimediumlow" "wlan0" "26" "100"
65 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssimediumhigh" "wlan0" "51" "100"
66 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssihigh" "wlan0" "76" "100"
67 ;;
68 comfast,cf-e130n-v2)
69 ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
70 ucidef_set_rssimon "wlan0" "200000" "1"
71 ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:red:rssilow" "wlan0" "1" "100"
72 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:red:rssimediumlow" "wlan0" "26" "100"
73 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssimediumhigh" "wlan0" "51" "100"
74 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssihigh" "wlan0" "76" "100"
75 ;;
76 comfast,cf-e313ac)
77 ucidef_set_led_switch "lan" "LAN" "$boardname:green:lan" "switch0" "0x02"
78 ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth1"
79 ucidef_set_rssimon "wlan0" "200000" "1"
80 ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:red:rssilow" "wlan0" "1" "100"
81 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:red:rssimediumlow" "wlan0" "26" "100"
82 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssimediumhigh" "wlan0" "51" "100"
83 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssihigh" "wlan0" "76" "100"
84 ;;
85 comfast,cf-e314n-v2)
86 ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
87 ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth1"
88 ucidef_set_rssimon "wlan0" "200000" "1"
89 ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:red:rssilow" "wlan0" "1" "100"
90 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:red:rssimediumlow" "wlan0" "26" "100"
91 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssimediumhigh" "wlan0" "51" "100"
92 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssihigh" "wlan0" "76" "100"
93 ;;
94 comfast,cf-e5)
95 ucidef_set_led_switch "lan" "LAN" "$boardname:blue:lan" "switch0" "0x02"
96 ucidef_set_led_netdev "wan" "WAN" "$boardname:blue:wan" "eth1"
97 ucidef_set_rssimon "wlan0" "200000" "1"
98 ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:blue:rssi0" "wlan0" "1" "100"
99 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "$boardname:blue:rssi1" "wlan0" "33" "100"
100 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:blue:rssi2" "wlan0" "66" "100"
101 ;;
102 comfast,cf-e560ac)
103 ucidef_set_led_netdev "wan" "WAN" "$boardname:blue:wan" "eth1"
104 ucidef_set_led_switch "lan1" "LAN1" "$boardname:blue:lan1" "switch0" "0x02"
105 ucidef_set_led_switch "lan2" "LAN2" "$boardname:blue:lan2" "switch0" "0x04"
106 ucidef_set_led_switch "lan3" "LAN3" "$boardname:blue:lan3" "switch0" "0x08"
107 ucidef_set_led_switch "lan4" "LAN4" "$boardname:blue:lan4" "switch0" "0x10"
108 ;;
109 comfast,cf-ew72)
110 ucidef_set_led_switch "lan" "LAN" "$boardname:blue:lan" "switch0" "0x02"
111 ucidef_set_led_netdev "wan" "WAN" "$boardname:blue:wan" "eth1"
112 ;;
113 comfast,cf-wr752ac-v1|\
114 engenius,ecb1750|\
115 enterasys,ws-ap3705i)
116 ucidef_set_led_netdev "lan" "LAN" "$boardname:blue:lan" "eth0"
117 ;;
118 compex,wpj531-16m)
119 ucidef_set_rssimon "wlan0" "200000" "1"
120 ucidef_set_led_rssi "sig1" "SIG1" "wpj531:red:sig1" "wlan0" "85" "100"
121 ucidef_set_led_rssi "sig2" "SIG2" "wpj531:yellow:sig2" "wlan0" "75" "100"
122 ucidef_set_led_rssi "sig3" "SIG3" "wpj531:green:sig3" "wlan0" "65" "100"
123 ucidef_set_led_rssi "sig4" "SIG4" "wpj531:green:sig4" "wlan0" "50" "100"
124 ;;
125 devolo,magic-2-wifi)
126 ucidef_set_led_netdev "plcw" "dLAN" "devolo:white:dlan" "eth0.1" "rx"
127 ;;
128 dlink,dir-859-a1)
129 ucidef_set_led_switch "internet" "WAN" "$boardname:green:internet" "switch0" "0x20"
130 ;;
131 engenius,ews511ap)
132 ucidef_set_led_netdev "lan1" "LAN1" "$boardname:blue:lan1" "eth1"
133 ucidef_set_led_netdev "lan2" "LAN2" "$boardname:blue:lan2" "eth0"
134 ;;
135 etactica,eg200)
136 ucidef_set_led_netdev "lan" "LAN" "$boardname:red:eth0" "eth0"
137 ucidef_set_led_oneshot "modbus" "Modbus" "$boardname:red:modbus" "100" "33"
138 ;;
139 glinet,6408|\
140 glinet,6416)
141 ucidef_set_led_netdev "lan" "LAN" "gl-inet:green:lan" "eth0"
142 ;;
143 glinet,gl-ar300m-lite)
144 ucidef_set_led_netdev "lan" "LAN" "gl-ar300m-lite:green:lan" "eth0"
145 ;;
146 glinet,gl-ar300m16)
147 ucidef_set_led_netdev "lan" "LAN" "gl-ar300m:green:lan" "eth0"
148 ;;
149 glinet,gl-x750)
150 ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth1"
151 ;;
152 netgear,wnr2200-8m|\
153 netgear,wnr2200-16m)
154 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
155 ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" "0x04"
156 ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" "0x04"
157 ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" "0x04"
158 ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" "0x04"
159 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02" "0x02"
160 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04" "0x02"
161 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08" "0x02"
162 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
163 ;;
164 pcs,cap324)
165 ucidef_set_led_netdev "lan" "LAN" "pcs:lan:green" "eth0"
166 ;;
167 pcs,cr3000)
168 ucidef_set_led_netdev "wan" "WAN" "pcs:blue:wan" "eth1"
169 ucidef_set_led_switch "lan1" "LAN1" "pcs:blue:lan1" "switch0" "0x04"
170 ucidef_set_led_switch "lan2" "LAN2" "pcs:blue:lan2" "switch0" "0x08"
171 ucidef_set_led_switch "lan3" "LAN3" "pcs:blue:lan3" "switch0" "0x10"
172 ucidef_set_led_switch "lan4" "LAN4" "pcs:blue:lan4" "switch0" "0x02"
173 ;;
174 qihoo,c301)
175 ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
176 ;;
177 tplink,archer-a7-v5|\
178 tplink,archer-c7-v4|\
179 tplink,archer-c7-v5)
180 ucidef_set_led_switch "wan" "WAN" "tp-link:green:wan" "switch0" "0x02"
181 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
182 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
183 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
184 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x20"
185 ;;
186 tplink,archer-c2-v3|\
187 tplink,tl-wr1043nd-v4|\
188 tplink,tl-wr1043n-v5)
189 ucidef_set_led_switch "wan" "WAN" "tp-link:green:wan" "switch0" "0x20"
190 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
191 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
192 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
193 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
194 ;;
195 tplink,archer-c6-v2|\
196 tplink,archer-c6-v2-us)
197 ucidef_set_led_switch "lan" "LAN" "tp-link:green:lan" "switch0" "0x3C"
198 ucidef_set_led_switch "wan" "WAN" "tp-link:green:wan" "switch0" "0x02"
199 ;;
200 tplink,archer-c25-v1|\
201 tplink,tl-wr842n-v3)
202 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
203 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
204 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
205 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
206 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
207 ;;
208 tplink,archer-c58-v1|\
209 tplink,archer-c59-v1|\
210 tplink,archer-c59-v2|\
211 tplink,archer-c60-v1|\
212 tplink,archer-c60-v2|\
213 tplink,archer-c60-v3)
214 ucidef_set_led_switch "lan" "LAN" "tp-link:green:lan" "switch0" "0x1E"
215 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
216 ;;
217 tplink,archer-d50-v1)
218 ucidef_set_led_switch "lan" "LAN" "tp-link:white:lan" "switch0" "0x1c"
219 ucidef_set_led_switch "wan_data" "WAN Data" "tp-link:white:internet" "switch0" "0x02" "" "tx rx"
220 ucidef_set_led_switch "wan_link" "WAN Link" "tp-link:white:wan" "switch0" "0x02" "" "link"
221 ;;
222 tplink,archer-d7-v1|\
223 tplink,archer-d7b-v1)
224 ucidef_set_led_switch "lan" "LAN" "tp-link:white:lan" "switch0" "0x3c"
225 ;;
226 tplink,cpe210-v1|\
227 tplink,cpe220-v2|\
228 tplink,cpe220-v3|\
229 tplink,cpe510-v1|\
230 tplink,wbs210-v1|\
231 tplink,wbs210-v2|\
232 tplink,wbs510-v1|\
233 tplink,wbs510-v2)
234 ucidef_set_led_netdev "lan0" "LAN0" "tp-link:green:lan0" "eth1"
235 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
236 ucidef_set_rssimon "wlan0" "200000" "1"
237 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:link1" "wlan0" "1" "100"
238 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:link2" "wlan0" "30" "100"
239 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "60" "100"
240 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "80" "100"
241 ;;
242 tplink,cpe210-v2|\
243 tplink,cpe210-v3)
244 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
245 ucidef_set_rssimon "wlan0" "200000" "1"
246 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:link1" "wlan0" "1" "100"
247 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:link2" "wlan0" "30" "100"
248 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "60" "100"
249 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "80" "100"
250 ;;
251 tplink,cpe510-v2|\
252 tplink,cpe510-v3)
253 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
254 ucidef_set_rssimon "wlan0" "200000" "1"
255 ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:link1" "wlan0" "1" "100" "0" "13"
256 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:link2" "wlan0" "26" "100" "-25" "13"
257 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "51" "100" "-50" "13"
258 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "76" "100" "-75" "13"
259 ;;
260 tplink,cpe610-v1|\
261 tplink,cpe610-v2)
262 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
263 ;;
264 tplink,tl-wr902ac-v1)
265 ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
266 ucidef_set_led_netdev "internet" "Internet" "tp-link:green:internet" "eth0"
267 ;;
268 tplink,re355-v1|\
269 tplink,re450-v1|\
270 tplink,re450-v2|\
271 tplink,re450-v3)
272 ucidef_set_led_netdev "lan_data" "LAN Data" "tp-link:green:lan_data" "eth0" "tx rx"
273 ucidef_set_led_netdev "lan_link" "LAN Link" "tp-link:green:lan_link" "eth0" "link"
274 ;;
275 tplink,tl-mr6400-v1)
276 ucidef_set_led_switch "lan" "LAN" "tp-link:white:lan" "switch0" "0x0e"
277 ucidef_set_led_netdev "wan" "WAN" "tp-link:white:wan" "eth1"
278 ucidef_set_led_netdev "4g" "4G" "tp-link:white:4g" "usb0"
279 ;;
280 tplink,tl-wr842n-v2)
281 ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
282 ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
283 ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
284 ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
285 ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
286 ;;
287 trendnet,tew-823dru)
288 ucidef_set_led_netdev "wan" "WAN" "trendnet:green:planet" "eth0"
289 ;;
290 ubnt,bullet-m-ar7240|\
291 ubnt,bullet-m-ar7241|\
292 ubnt,bullet-m-xw|\
293 ubnt,nanobridge-m|\
294 ubnt,nanostation-loco-m|\
295 ubnt,nanostation-loco-m-xw|\
296 ubnt,nanostation-m|\
297 ubnt,nanostation-m-xw|\
298 ubnt,picostation-m|\
299 ubnt,rocket-m)
300 ucidef_set_rssimon "wlan0" "200000" "1"
301 ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100"
302 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:orange:link2" "wlan0" "26" "100"
303 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link3" "wlan0" "51" "100"
304 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link4" "wlan0" "76" "100"
305 ;;
306 ubnt,nanobeam-ac|\
307 ubnt,nanostation-ac|\
308 ubnt,powerbeam-5ac-gen2)
309 ucidef_set_rssimon "wlan0" "200000" "1"
310 ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:blue:rssi0" "wlan0" "1" "100"
311 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:blue:rssi1" "wlan0" "26" "100"
312 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:blue:rssi2" "wlan0" "51" "100"
313 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:blue:rssi3" "wlan0" "76" "100"
314 ;;
315 wd,mynet-wifi-rangeextender)
316 ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
317 ucidef_set_rssimon "wlan0" "200000" "1"
318 ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:rssi-low" "wlan0" "1" "100"
319 ucidef_set_led_rssi "rssimedium" "RSSIMED" "$boardname:blue:rssi-med" "wlan0" "33" "100"
320 ucidef_set_led_rssi "rssihigh" "RSSIMAX" "$boardname:blue:rssi-max" "wlan0" "66" "100"
321 ;;
322 yuncore,a770)
323 ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth1"
324 ucidef_set_led_switch "lan" "LAN" "$boardname:green:lan" "switch0" "0x10"
325 ;;
326 zbtlink,zbt-wd323)
327 ucidef_set_led_switch "lan1" "LAN1" "zbt-wd323:orange:lan1" "switch0" "0x10"
328 ucidef_set_led_switch "lan2" "LAN2" "zbt-wd323:orange:lan2" "switch0" "0x08"
329 ;;
330 esac
331
332 board_config_flush
333
334 exit 0