3 .
/lib
/functions
/uci-defaults.sh
8 boardname
="${board##*,}"
12 ucidef_set_led_netdev
"lan" "LAN" "$boardname:orange:eth0" "eth0"
13 ucidef_set_led_switch
"wan" "WAN" "$boardname:orange:eth1" "switch0" "0x04"
16 ucidef_set_led_netdev
"lan" "LAN" "$boardname:green:lan" "eth0"
19 ucidef_set_led_netdev
"lan" "LAN" "$boardname:green:lan" "eth0"
20 ucidef_set_rssimon
"wlan0" "200000" "1"
21 ucidef_set_led_rssi
"rssilow" "RSSILOW" "$boardname:green:rssi0" "wlan0" "1" "100"
22 ucidef_set_led_rssi
"rssimediumlow" "RSSIMEDIUMLOW" "$boardname:green:rssi1" "wlan0" "20" "100"
23 ucidef_set_led_rssi
"rssimedium" "RSSIMEDIUM" "$boardname:green:rssi2" "wlan0" "40" "100"
24 ucidef_set_led_rssi
"rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssi3" "wlan0" "60" "100"
25 ucidef_set_led_rssi
"rssihigh" "RSSIHIGH" "$boardname:green:rssi4" "wlan0" "80" "100"
28 ucidef_set_led_netdev
"wan" "WAN" "$boardname:green:wan" "eth1"
29 ucidef_set_led_switch
"lan" "LAN" "$boardname:green:lan" "switch0" "0x1E"
32 ucidef_set_led_netdev
"lan" "LAN" "$boardname:green:lan" "eth1"
33 ucidef_set_led_switch
"wan" "WAN" "$boardname:green:wan" "switch0" "0x02"
34 ucidef_set_led_wlan
"wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
35 ucidef_set_rssimon
"wlan0" "200000" "1"
36 ucidef_set_led_rssi
"rssilow" "RSSILOW" "$boardname:red:rssilow" "wlan0" "1" "100"
37 ucidef_set_led_rssi
"rssimediumlow" "RSSIMEDIUMLOW" "$boardname:red:rssimediumlow" "wlan0" "26" "100"
38 ucidef_set_led_rssi
"rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssimediumhigh" "wlan0" "51" "100"
39 ucidef_set_led_rssi
"rssihigh" "RSSIHIGH" "$boardname:green:rssihigh" "wlan0" "76" "100"
42 ucidef_set_led_netdev
"lan" "LAN" "$boardname:green:lan" "eth1"
43 ucidef_set_led_switch
"wan" "WAN" "$boardname:green:wan" "switch0" "0x04"
44 ucidef_set_rssimon
"wlan0" "200000" "1"
45 ucidef_set_led_rssi
"rssilow" "RSSILOW" "$boardname:red:rssilow" "wlan0" "1" "100"
46 ucidef_set_led_rssi
"rssimediumlow" "RSSIMEDIUMLOW" "$boardname:red:rssimediumlow" "wlan0" "26" "100"
47 ucidef_set_led_rssi
"rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssimediumhigh" "wlan0" "51" "100"
48 ucidef_set_led_rssi
"rssihigh" "RSSIHIGH" "$boardname:green:rssihigh" "wlan0" "76" "100"
51 ucidef_set_led_switch
"lan" "LAN" "$boardname:green:lan" "switch0" "0x02"
52 ucidef_set_led_netdev
"wan" "WAN" "$boardname:green:wan" "eth1"
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"
60 ucidef_set_led_netdev
"wan" "WAN" "$boardname:green:wan" "eth0"
61 ucidef_set_led_netdev
"lan" "LAN" "$boardname:green:lan" "eth1"
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"
69 ucidef_set_led_switch
"lan" "LAN" "$boardname:blue:lan" "switch0" "0x02"
70 ucidef_set_led_netdev
"wan" "WAN" "$boardname:blue:wan" "eth1"
71 ucidef_set_rssimon
"wlan0" "200000" "1"
72 ucidef_set_led_rssi
"rssilow" "RSSILOW" "$boardname:blue:rssi0" "wlan0" "1" "100"
73 ucidef_set_led_rssi
"rssimedium" "RSSIMEDIUM" "$boardname:blue:rssi1" "wlan0" "33" "100"
74 ucidef_set_led_rssi
"rssihigh" "RSSIHIGH" "$boardname:blue:rssi2" "wlan0" "66" "100"
80 ucidef_set_led_switch
"internet" "WAN" "$boardname:green:internet" "switch0" "0x20"
83 ucidef_set_led_netdev
"lan" "LAN" "$boardname:blue:lan" "eth0"
86 ucidef_set_led_netdev
"lan1" "LAN1" "$boardname:blue:lan1" "eth1"
87 ucidef_set_led_netdev
"lan2" "LAN2" "$boardname:blue:lan2" "eth0"
90 ucidef_set_led_netdev
"lan" "LAN" "$boardname:red:eth0" "eth0"
91 ucidef_set_led_oneshot
"modbus" "Modbus" "$boardname:red:modbus" "100" "33"
94 ucidef_set_led_netdev
"wan" "WAN" "$boardname:green:wan" "eth1"
95 ucidef_set_led_switch
"lan" "LAN" "$boardname:green:lan" "switch0" "0x02"
97 glinet
,gl-ar300m-lite
)
98 ucidef_set_led_netdev
"lan" "LAN" "gl-ar300m-lite:green:lan" "eth0"
101 ucidef_set_led_netdev
"wan" "WAN" "$boardname:green:wan" "eth1"
105 ucidef_set_led_netdev
"wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
106 ucidef_set_led_switch
"lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" "0x04"
107 ucidef_set_led_switch
"lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" "0x04"
108 ucidef_set_led_switch
"lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" "0x04"
109 ucidef_set_led_switch
"lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" "0x04"
110 ucidef_set_led_switch
"lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02" "0x02"
111 ucidef_set_led_switch
"lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04" "0x02"
112 ucidef_set_led_switch
"lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08" "0x02"
113 ucidef_set_led_switch
"lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
116 ucidef_set_led_netdev
"lan" "LAN" "pcs:lan:green" "eth0"
119 ucidef_set_led_netdev
"wan" "WAN" "pcs:blue:wan" "eth1"
120 ucidef_set_led_switch
"lan1" "LAN1" "pcs:blue:lan1" "switch0" "0x04"
121 ucidef_set_led_switch
"lan2" "LAN2" "pcs:blue:lan2" "switch0" "0x08"
122 ucidef_set_led_switch
"lan3" "LAN3" "pcs:blue:lan3" "switch0" "0x10"
123 ucidef_set_led_switch
"lan4" "LAN4" "pcs:blue:lan4" "switch0" "0x02"
126 ucidef_set_led_wlan
"wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
128 tplink
,archer-a7-v5|\
129 tplink
,archer-c7-v4|\
131 ucidef_set_led_switch
"wan" "WAN" "tp-link:green:wan" "switch0" "0x02"
132 ucidef_set_led_switch
"lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
133 ucidef_set_led_switch
"lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
134 ucidef_set_led_switch
"lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
135 ucidef_set_led_switch
"lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x20"
137 tplink
,archer-c2-v3|\
138 tplink
,tl-wr1043nd-v4|\
139 tplink
,tl-wr1043n-v5
)
140 ucidef_set_led_switch
"wan" "WAN" "tp-link:green:wan" "switch0" "0x20"
141 ucidef_set_led_switch
"lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
142 ucidef_set_led_switch
"lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
143 ucidef_set_led_switch
"lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
144 ucidef_set_led_switch
"lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
147 ucidef_set_led_switch
"lan" "LAN" "tp-link:green:lan" "switch0" "0x3C"
148 ucidef_set_led_switch
"wan" "WAN" "tp-link:green:wan" "switch0" "0x02"
150 tplink
,archer-c25-v1|\
152 ucidef_set_led_netdev
"wan" "WAN" "tp-link:green:wan" "eth1"
153 ucidef_set_led_switch
"lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
154 ucidef_set_led_switch
"lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
155 ucidef_set_led_switch
"lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
156 ucidef_set_led_switch
"lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
158 tplink
,archer-c58-v1|\
159 tplink
,archer-c59-v1|\
160 tplink
,archer-c59-v2|\
161 tplink
,archer-c60-v1|\
162 tplink
,archer-c60-v2
)
163 ucidef_set_led_switch
"lan" "LAN" "tp-link:green:lan" "switch0" "0x1E"
164 ucidef_set_led_netdev
"wan" "WAN" "tp-link:green:wan" "eth1"
166 tplink
,archer-d50-v1
)
167 ucidef_set_led_switch
"lan" "LAN" "tp-link:white:lan" "switch0" "0x1c"
168 ucidef_set_led_switch
"wan_data" "WAN Data" "tp-link:white:internet" "switch0" "0x02" "" "tx rx"
169 ucidef_set_led_switch
"wan_link" "WAN Link" "tp-link:white:wan" "switch0" "0x02" "" "link"
176 ucidef_set_led_netdev
"lan0" "LAN0" "tp-link:green:lan0" "eth1"
177 ucidef_set_led_switch
"lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
178 ucidef_set_rssimon
"wlan0" "200000" "1"
179 ucidef_set_led_rssi
"rssilow" "RSSILOW" "tp-link:green:link1" "wlan0" "1" "100"
180 ucidef_set_led_rssi
"rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:link2" "wlan0" "30" "100"
181 ucidef_set_led_rssi
"rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "60" "100"
182 ucidef_set_led_rssi
"rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "80" "100"
186 ucidef_set_led_netdev
"lan" "LAN" "tp-link:green:lan" "eth0"
187 ucidef_set_rssimon
"wlan0" "200000" "1"
188 ucidef_set_led_rssi
"rssilow" "RSSILOW" "tp-link:green:link1" "wlan0" "1" "100"
189 ucidef_set_led_rssi
"rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:link2" "wlan0" "30" "100"
190 ucidef_set_led_rssi
"rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "60" "100"
191 ucidef_set_led_rssi
"rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "80" "100"
195 ucidef_set_led_netdev
"lan" "LAN" "tp-link:green:lan" "eth0"
196 ucidef_set_rssimon
"wlan0" "200000" "1"
197 ucidef_set_led_rssi
"rssilow" "RSSILOW" "tp-link:green:link1" "wlan0" "1" "100" "0" "13"
198 ucidef_set_led_rssi
"rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:link2" "wlan0" "26" "100" "-25" "13"
199 ucidef_set_led_rssi
"rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "51" "100" "-50" "13"
200 ucidef_set_led_rssi
"rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "76" "100" "-75" "13"
203 ucidef_set_led_netdev
"lan" "LAN" "tp-link:green:lan" "eth0"
208 ucidef_set_led_netdev
"lan_data" "LAN Data" "tp-link:green:lan_data" "eth0" "tx rx"
209 ucidef_set_led_netdev
"lan_link" "LAN Link" "tp-link:green:lan_link" "eth0" "link"
212 ucidef_set_led_netdev
"wan" "WAN" "tp-link:green:wan" "eth1"
213 ucidef_set_led_switch
"lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
214 ucidef_set_led_switch
"lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
215 ucidef_set_led_switch
"lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
216 ucidef_set_led_switch
"lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
219 ucidef_set_led_netdev
"wan" "WAN" "trendnet:green:planet" "eth0"
224 ubnt
,nanostation-m-xw|\
226 ucidef_set_rssimon
"wlan0" "200000" "1"
227 ucidef_set_led_rssi
"rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100"
228 ucidef_set_led_rssi
"rssimediumlow" "RSSIMEDIUMLOW" "ubnt:orange:link2" "wlan0" "26" "100"
229 ucidef_set_led_rssi
"rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link3" "wlan0" "51" "100"
230 ucidef_set_led_rssi
"rssihigh" "RSSIHIGH" "ubnt:green:link4" "wlan0" "76" "100"
234 ucidef_set_rssimon
"wlan0" "200000" "1"
235 ucidef_set_led_rssi
"rssilow" "RSSILOW" "ubnt:blue:rssi0" "wlan0" "1" "100"
236 ucidef_set_led_rssi
"rssimediumlow" "RSSIMEDIUMLOW" "ubnt:blue:rssi1" "wlan0" "26" "100"
237 ucidef_set_led_rssi
"rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:blue:rssi2" "wlan0" "51" "100"
238 ucidef_set_led_rssi
"rssihigh" "RSSIHIGH" "ubnt:blue:rssi3" "wlan0" "76" "100"
240 wd
,mynet-wifi-rangeextender
)
241 ucidef_set_led_netdev
"lan" "LAN" "$boardname:green:lan" "eth0"
242 ucidef_set_rssimon
"wlan0" "200000" "1"
243 ucidef_set_led_rssi
"rssilow" "RSSILOW" "$boardname:rssi-low" "wlan0" "1" "100"
244 ucidef_set_led_rssi
"rssimedium" "RSSIMED" "$boardname:blue:rssi-med" "wlan0" "33" "100"
245 ucidef_set_led_rssi
"rssihigh" "RSSIMAX" "$boardname:blue:rssi-max" "wlan0" "66" "100"
248 ucidef_set_led_netdev
"wan" "WAN" "$boardname:green:wan" "eth1"
249 ucidef_set_led_switch
"lan" "LAN" "$boardname:green:lan" "switch0" "0x10"
252 ucidef_set_led_switch
"lan1" "LAN1" "zbt-wd323:orange:lan1" "switch0" "0x10"
253 ucidef_set_led_switch
"lan2" "LAN2" "zbt-wd323:orange:lan2" "switch0" "0x08"