3 .
/lib
/functions
/leds.sh
4 .
/lib
/functions
/uci-defaults.sh
7 ucidef_set_led_netdev
"wifi_led" "wifi" "${1}" "${2:-wlan0}"
12 boardname
="${board##*,}"
16 led_wlan
="$(get_dt_led wlan)"
17 [ -n "$led_wlan" ] && ucidef_set_led_wlan
"wifi_led" "wifi" "$led_wlan" "phy0tpt"
21 ucidef_set_led_netdev
"internet" "internet" "$boardname:amber:internet" "wan"
22 ucidef_set_led_netdev
"wlan2g" "WiFi 2.4GHz" "$boardname:blue:wlan2g" "wlan0"
23 ucidef_set_led_netdev
"wlan5g" "WiFi 5GHz" "$boardname:blue:wlan5g" "wlan1"
27 ucidef_set_led_netdev
"internet" "internet" "$boardname:blue:internet" "wan"
31 ucidef_set_led_netdev
"wan" "wan" "$boardname:green:net" "wan"
35 ucidef_set_led_netdev
"lan1" "lan1" "$boardname:green:lan1" "lan1"
36 ucidef_set_led_netdev
"lan2" "lan2" "$boardname:green:lan2" "lan2"
39 ucidef_set_led_netdev
"lan1" "lan1 link" "$boardname:green:lan1" "lan1" "link"
40 ucidef_set_led_netdev
"lan2" "lan2 link" "$boardname:green:lan2" "lan2" "link"
41 ucidef_set_led_netdev
"lan3" "lan3 link" "$boardname:green:lan3" "lan3" "link"
42 ucidef_set_led_netdev
"lan4" "lan4 link" "$boardname:green:lan4" "lan4" "link"
43 ucidef_set_led_netdev
"wan" "wan link" "$boardname:green:wan" "wan" "link"
45 mikrotik
,routerboard-m11g
)
46 ucidef_set_rssimon
"wlan0" "200000" "1"
47 ucidef_set_led_rssi
"rssilow" "RSSILOW" "$boardname:green:rssi0" "wlan0" "1" "100"
48 ucidef_set_led_rssi
"rssimediumlow" "RSSIMEDIUMLOW" "$boardname:green:rssi1" "wlan0" "20" "100"
49 ucidef_set_led_rssi
"rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssi2" "wlan0" "40" "100"
50 ucidef_set_led_rssi
"rssihigh" "RSSIHIGH" "$boardname:green:rssi3" "wlan0" "60" "100"
51 ucidef_set_led_rssi
"rssiveryhigh" "RSSIVERYHIGH" "$boardname:green:rssi4" "wlan0" "80" "100"
54 ucidef_set_led_netdev
"eth_link" "LAN link" "$boardname:green:eth_link" "br-lan"
62 ucidef_set_led_netdev
"wan" "wan" "$boardname:green:wan" "wan"
66 ucidef_set_led_netdev
"wan" "WAN" "$boardname:white:wan" "wan"
67 ucidef_set_led_netdev
"lan1" "LAN1" "$boardname:white:lan1" "lan1"
68 ucidef_set_led_netdev
"lan2" "LAN2" "$boardname:white:lan2" "lan2"
69 ucidef_set_led_netdev
"lan3" "LAN3" "$boardname:white:lan3" "lan3"
70 ucidef_set_led_netdev
"lan4" "LAN4" "$boardname:white:lan4" "lan4"
73 ucidef_set_led_netdev
"wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0"
74 ucidef_set_led_netdev
"wifi5g" "Wifi 5G" "$boardname:blue:wifi5G" "wlan1"
75 ucidef_set_led_netdev
"eth_act" "LAN act" "$boardname:green:eth_act" "lan" "tx rx"
76 ucidef_set_led_netdev
"eth_link" "LAN link" "$boardname:green:eth_link" "lan" "link"
80 ucidef_set_led_netdev
"eth_act" "LAN act" "$boardname:green:eth_act" "lan" "tx rx"
81 ucidef_set_led_netdev
"eth_link" "LAN link" "$boardname:green:eth_link" "lan" "link"
83 xzwifi
,creativebox-v1
)
84 ucidef_set_led_netdev
"internet" "internet" "$boardname:blue:internet" "wan"
86 xiaomi
,mi-router-ac2100
)
87 ucidef_set_led_netdev
"wan-blue" "WAN (blue)" "$boardname:blue:wan" "wan"
89 xiaomi
,redmi-router-ac2100
)
90 ucidef_set_led_netdev
"wan" "wan" "$boardname:white:wan" "wan"
93 ucidef_set_led_netdev
"internet" "INTERNET" "$boardname:green:wan" "wan"