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"
20 alfa-network
,awusfree1
)
21 set_wifi_led
"$boardname:blue:wlan"
26 ucidef_set_led_switch
"lan" "lan" "$boardname:green:lan" "switch0" "0xf"
27 ucidef_set_led_switch
"wan" "wan" "$boardname:green:wan" "switch0" "0x10"
30 ucidef_set_led_switch
"wan" "wan" "$boardname:blue:wan" "switch0" "0x10"
31 ucidef_set_led_switch
"lan1" "lan1" "$boardname:blue:lan1" "switch0" "0x08"
32 ucidef_set_led_switch
"lan2" "lan2" "$boardname:blue:lan2" "switch0" "0x04"
35 set_wifi_led
"$boardname:red:wlan"
36 ucidef_set_led_switch
"wan" "wan" "$boardname:green:wan" "switch0" "0x1"
40 set_wifi_led
"$boardname:green:wlan"
44 ucidef_set_led_switch
"internet" "internet" "$boardname:blue:internet" "switch0" "0x10"
46 mediatek
,linkit-smart-7688
)
47 ucidef_set_led_wlan
"wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt"
50 ucidef_set_led_switch
"lan" "lan" "$boardname:green:lan" "switch0" "0x0f"
51 ucidef_set_led_switch
"wan" "wan" "$boardname:green:wan" "switch0" "0x10"
52 ucidef_set_led_wlan
"wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "phy0tpt"
55 set_wifi_led
"$boardname:blue:wifi"
58 ucidef_set_led_netdev
"wan" "WAN" "$boardname:green:wan" "eth0"
59 ucidef_set_led_wlan
"wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
61 tplink
,archer-c20-v4|\
63 ucidef_set_led_switch
"lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
64 ucidef_set_led_switch
"wan" "wan" "$boardname:green:wan" "switch0" "0x01"
66 tplink
,archer-c50-v3|\
68 ucidef_set_led_switch
"lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
69 ucidef_set_led_switch
"wan" "wan" "$boardname:green:wan" "switch0" "0x01"
70 ucidef_set_led_wlan
"wlan2g" "wlan2g" "$boardname:green:wlan2g" "phy0tpt"
71 ucidef_set_led_wlan
"wlan5g" "wlan5g" "$boardname:green:wlan5g" "phy1tpt"
76 ucidef_set_led_netdev
"lan" "lan" "$boardname:green:lan" "eth0"
80 ucidef_set_led_wlan
"wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
81 ucidef_set_led_switch
"lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
82 ucidef_set_led_switch
"wan" "wan" "$boardname:green:wan" "switch0" "0x01"
85 ucidef_set_led_wlan
"wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
86 ucidef_set_led_switch
"lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
87 ucidef_set_led_switch
"wan" "wan" "$boardname:green:wan" "switch0" "0x01"
90 ucidef_set_led_wlan
"wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
91 ucidef_set_led_switch
"lan1" "lan1" "$boardname:green:lan1" "switch0" "0x2"
92 ucidef_set_led_switch
"lan2" "lan2" "$boardname:green:lan2" "switch0" "0x4"
93 ucidef_set_led_switch
"lan3" "lan3" "$boardname:green:lan3" "switch0" "0x8"
94 ucidef_set_led_switch
"lan4" "lan4" "$boardname:green:lan4" "switch0" "0x10"
95 ucidef_set_led_switch
"wan" "wan" "$boardname:green:wan" "switch0" "0x01"
98 ucidef_set_led_switch
"lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
99 ucidef_set_led_switch
"wan" "wan" "$boardname:green:wan" "switch0" "0x01"
101 tplink
,tl-wr902ac-v3
)
102 ucidef_set_led_wlan
"wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
103 ucidef_set_led_switch
"lan" "lan" "$boardname:green:lan" "switch0" "0x10"
104 ucidef_set_led_switch
"wan" "wan" "$boardname:green:wan" "switch0" "0x10"
106 unielec
,u7628-01-16m
)
107 ucidef_set_led_switch
"lan1" "lan1" "u7628-01:green:lan1" "switch0" "0x2"
108 ucidef_set_led_switch
"lan2" "lan2" "u7628-01:green:lan2" "switch0" "0x4"
109 ucidef_set_led_switch
"lan3" "lan3" "u7628-01:green:lan3" "switch0" "0x8"
110 ucidef_set_led_switch
"lan4" "lan4" "u7628-01:green:lan4" "switch0" "0x10"
111 ucidef_set_led_switch
"wan" "wan" "u7628-01:green:wan" "switch0" "0x01"
112 set_wifi_led
"u7628-01:green:wlan"
115 ucidef_set_led_switch
"wan" "wan" "$boardname:green:wan" "switch0" "0x01"
116 ucidef_set_rssimon
"wlan0" "200000" "1"
117 ucidef_set_led_rssi
"wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan0" "1" "49"
118 ucidef_set_led_rssi
"wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan0" "50" "84"
119 ucidef_set_led_rssi
"wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan0" "85" "100"
120 set_wifi_led
"$boardname:green:wifi"
123 ucidef_set_rssimon
"wlan1" "200000" "1"
124 ucidef_set_led_rssi
"wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan1" "1" "49"
125 ucidef_set_led_rssi
"wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan1" "50" "84"
126 ucidef_set_led_rssi
"wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan1" "85" "100"
129 set_wifi_led
"$boardname:green:wlan"
130 ucidef_set_led_switch
"lan1" "LAN1" "$boardname:green:lan1" "switch0" "0x01"
131 ucidef_set_led_switch
"lan2" "LAN2" "$boardname:green:lan2" "switch0" "0x02"
132 ucidef_set_led_switch
"wan" "WAN" "$boardname:green:wan" "switch0" "0x10"
134 zyxel
,keenetic-extra-ii
)
135 set_wifi_led
"$boardname:green:wifi"
136 ucidef_set_led_switch
"internet" "internet" "$boardname:green:internet" "switch0" "0x01"