File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ update_description() {
45
45
local icon=" 🌐"
46
46
47
47
case " $iface " in
48
- wlan ) icon=" 🛜" ;;
49
- mobile ) icon=" 📶" ;;
48
+ Wi-Fi ) icon=" 🛜" ;;
49
+ Cellular ) icon=" 📶" ;;
50
50
esac
51
51
52
52
local desc=" TCP Optimisations & update tcp_cong_algo based on interface | iface: $iface $icon | algo: $algo "
@@ -92,8 +92,8 @@ while true; do
92
92
93
93
new_mode=" none"
94
94
case " $iface " in
95
- wlan* ) new_mode=" wifi " ;;
96
- rmnet_data* ) new_mode=" mobile " ;;
95
+ wlan* ) new_mode=" Wi-Fi " ;;
96
+ rmnet_data* ) new_mode=" Cellular " ;;
97
97
* ) new_mode=" none" ;;
98
98
esac
99
99
@@ -102,7 +102,7 @@ while true; do
102
102
if [ " $new_mode " != " $last_mode " ]; then
103
103
if [ " $(( current_time - change_time)) " -ge " $DEBOUNCE_TIME " ]; then
104
104
applied=0
105
- if [ " $new_mode " = " wifi " ]; then
105
+ if [ " $new_mode " = " Wi-Fi " ]; then
106
106
for algo in bbr reno cubic; do
107
107
if [ -f " $MODPATH /wlan_$algo " ]; then
108
108
set_congestion " $algo " " $new_mode "
@@ -111,7 +111,7 @@ while true; do
111
111
fi
112
112
done
113
113
[ " $applied " -eq 0 ] && set_congestion cubic " $new_mode "
114
- elif [ " $new_mode " = " mobile " ]; then
114
+ elif [ " $new_mode " = " Cellular " ]; then
115
115
for algo in bbr reno cubic; do
116
116
if [ -f " $MODPATH /rmnet_data_$algo " ]; then
117
117
set_congestion " $algo " " $new_mode "
You can’t perform that action at this time.
0 commit comments