3 . /lib/functions/uci-defaults.sh
7 ucidef_set_led_usbdev "usb" "USB" "$1" "1-1"
11 ucidef_set_led_netdev "wifi_led" "wifi" "$1" "wlan0"
15 board=$(ramips_board_name)
22 set_usb_led "$board:blue:3g"
25 set_wifi_led "$board:amber:wlan"
26 set_usb_led "$board:blue:3g"
31 set_wifi_led "$board:amber:wlan"
35 ucidef_set_led_default "power" "POWER" "$board:red:power" "1"
38 ucidef_set_led_netdev "wan" "wan" "$board:blue:wan" "eth0.2"
39 set_wifi_led "$board:blue:wlan"
42 set_wifi_led "$board:green:wlan"
43 set_usb_led "$board:green:mobile"
51 set_usb_led "$board:green:usb"
54 ucidef_set_rssimon "wlan0" "40000" "1"
55 ucidef_set_led_rssi "rssilow" "RSSILOW" "$board:green:rssilow" "wlan0" "1" "40" "0" "6"
56 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "$board:green:rssimed" "wlan0" "30" "80" "-29" "5"
57 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$board:green:rssihigh" "wlan0" "70" "100" "-69" "8"
58 set_wifi_led "rt2800pci-phy0::radio"
63 set_wifi_led "rt2800soc-phy0::radio"
66 ucidef_set_led_default "power" "POWER" "$board:green:power" "1"
67 ucidef_set_led_netdev "eth" "ETH" "$board:green:eth" "eth0"
68 set_wifi_led "$board:green:wlan"
69 set_usb_led "$board:green:3g"
72 set_usb_led "$board:blue:usb"
75 set_wifi_led "$board:orange:wlan"
78 set_usb_led "$board:red:diskmounted"
79 set_wifi_led "$board:red:wps_active"
82 ucidef_set_led_netdev "lan" "lan" "$board:white:ethernet" eth0.1
83 set_wifi_led "$board:white:wifi"
86 ucidef_set_led_default "wps" "WPS" "$board:blue:wps" "0"
87 set_usb_led "$board:blue:usb"
90 ucidef_set_led_default "power" "POWER" "$board:red:power" "1"
91 set_usb_led "$board:green:usb"
94 ucidef_set_led_default "power" "power" "$board:orange:power" "1"
97 ucidef_set_led_default "power" "POWER" "$board:red:power" "1"
98 ucidef_set_led_netdev "wifi" "WiFi" "$board:blue:wps"
104 ucidef_set_led_default "wan" "WAN LED (amber)" "$board:amber:wan" "1"
105 set_wifi_led "rt2800pci-phy0::radio"
116 set_wifi_led "rt2800pci-phy0::radio"
120 ucidef_set_led_default "status" "Status LED (amber)" "$board:amber:status" "0"
121 set_wifi_led "rt2800pci-phy0::radio"
125 set_wifi_led "$board:green:wifi"
130 ucidef_set_led_default "power" "power" "$board:green:power" "1"
133 ucidef_set_led_default "power_r" "POWER (red)" "$board:red:power" "0"
134 set_wifi_led "$board:green:router"
138 set_usb_led "$board:blue:storage"
141 set_usb_led "$board:orange:usb"
142 set_wifi_led "$board:orange:wifi"
147 set_wifi_led "$board:wlan"
150 ucidef_set_led_default "system" "system" "$board:blue:system" "1"
151 ucidef_set_led_netdev "internet" "internet" "$board:blue:internet" "eth0.2"
152 set_wifi_led "$board:blue:wlan2g"
155 ucidef_set_led_default "system" "system" "$board:blue:system" "1"
156 ucidef_set_led_netdev "internet" "internet" "$board:blue:internet" "eth0.2"
157 set_wifi_led "$board:blue:wlan2g"
158 ucidef_set_led_netdev "wifi5g" "wifi5g" "$board:blue:wlan5g" "rai0"
161 ucidef_set_led_default "system" "system" "$board:blue:system" "1"
162 ucidef_set_led_netdev "internet" "internet" "$board:blue:internet" "eth0.2"
163 set_wifi_led "$board:blue:wlan2g"
164 ucidef_set_led_netdev "wifi5g" "wifi5g" "$board:blue:wlan5g" "rai0"
165 ucidef_set_led_default "turbo" "turbo" "$board:blue:turbo" "0"
168 set_wifi_led "$board:green:wlan"
169 set_usb_led "$board:green:usb"
170 ucidef_set_led_netdev "internet" "internet" "$board:green:internet" "eth0.2"
173 ucidef_set_led_default "power" "POWER" "$board:orange:power" "1"
174 ucidef_set_led_netdev "eth" "ETH" "$board:green:eth" "eth0"
175 set_wifi_led "$board:green:wifi"
178 ucidef_set_led_netdev "eth" "Ethernet" "$board:green:lan" "eth0"
179 set_wifi_led "$board:blue:wlan"
182 set_wifi_led "$board:blue:wifi"
183 ucidef_set_led_netdev "eth" "Ethernet" "$board:green:wan" "eth0"
186 set_wifi_led "$board:red:wlan"
187 set_usb_led "$board:green:mobile"
190 ucidef_set_led_default "power" "power" "$board:red:status" "1"
193 ucidef_set_led_default "power" "power" "$board:red:status" "1"
194 ucidef_set_led_wlan "radio_led" "radio" "$board:amber:radio" "phy0radio"
195 ucidef_set_led_wlan "wifi_led" "wifi" "$board:blue:wifi" "phy0assoc"
199 set_wifi_led "$board:blue:wifi"
200 ucidef_set_led_default "system" "system" "$board:blue:system" "1"
204 set_wifi_led "$board:blue:system"
207 set_wifi_led "$board:green:wlan"
208 set_usb_led "$board:green:usb"
211 ucidef_set_led_default "power" "power" "$board:red:power" "1"
212 set_wifi_led "$board:red:wifi"
215 set_usb_led "$board:blue:status"
218 set_usb_led "$board:amber:usb"
221 ucidef_set_led_default "power" "power" "$board:green:power" "1"
222 set_wifi_led "$board:green:wifi"
225 ucidef_set_led_netdev "internet" "internet" "$board:blue:internet" "eth0.2"
226 ucidef_set_led_default "power" "power" "$board:blue:power" "1"
227 ucidef_set_led_default "sys" "sys" "$board:blue:sys" "1"
230 set_wifi_led "$board:white:wlan2g"
233 set_wifi_led "$board:orange:wifi"
234 set_usb_led "$board:blue:storage"
237 ucidef_set_led_default "power" "power" "$board:white:power" "1"
238 ucidef_set_led_default "wifi" "wifi" "$board:orange:wifi" "1"
241 ucidef_set_led_netdev "eth" "Network" "$board:white:back" "eth0"
242 set_wifi_led "$board:blue:wifi"
245 ucidef_set_led_default "power" "power" "$board:blue:power" "1"
246 ucidef_set_led_netdev "lan" "lan" "$board:blue:lan" eth0.1
247 ucidef_set_led_netdev "wan" "wan" "$board:blue:wan" eth0.2
248 set_wifi_led "$board:blue:air"
249 set_usb_led "$board:blue:usb"
252 set_wifi_led "$board:orange:wifi"
253 set_usb_led "$board:green:usb"
256 ucidef_set_led_netdev "eth" "ETH" "$board:orange:eth" "eth0"
257 set_wifi_led "$board:green:status"
260 set_usb_led "$board:blue:usb"
261 set_wifi_led "rt2800pci-phy0::radio"
264 set_usb_led "$board:amber:user"
269 ucidef_set_led_default "power" "power" "$board:green:power" "1"
270 ucidef_set_led_default "router" "router" "$board:green:router" "1"
273 set_wifi_led "$board:green:wlan"
276 set_wifi_led "$board:green:wlan"
277 ucidef_set_led_netdev "lan" "lan" "$board:green:ethernet" "eth0"
280 ucidef_set_led_default "power" "POWER" "$board:green:power" "0"
283 ucidef_set_led_default "power" "power" "$board:blue:power" "0"
287 ucidef_set_led_default "power" "power" "$board:blue:power" "1"
288 set_usb_led "$board:blue:usb"
289 set_wifi_led "$board:blue:wifi"
292 ucidef_set_led_default "power" "power" "$board:blue:power" "1"
293 set_wifi_led "$board:blue:air"
294 set_usb_led "$board:blue:usb"
297 ucidef_set_led_default "power" "power" "$board:green:power" "1"
298 set_wifi_led "$board:green:wifi"
299 set_usb_led "$board:green:usb"
302 ucidef_set_led_default "power" "power" "$board:green:sys" "1"
303 set_usb_led "$board:green:usb"
304 set_wifi_led "$board:green:wifi"
307 set_wifi_led "$board:blue:status"
310 ucidef_set_led_default "power" "power" "$board:blue:power" "1"
311 set_wifi_led "$board:blue:air"
312 set_usb_led "$board:blue:usb"