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() {
4545 local icon=" 🌐"
4646
4747 case " $iface " in
48- wlan ) icon=" 🛜" ;;
49- mobile ) icon=" 📶" ;;
48+ Wi-Fi ) icon=" 🛜" ;;
49+ Cellular ) icon=" 📶" ;;
5050 esac
5151
5252 local desc=" TCP Optimisations & update tcp_cong_algo based on interface | iface: $iface $icon | algo: $algo "
@@ -92,8 +92,8 @@ while true; do
9292
9393 new_mode=" none"
9494 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 " ;;
9797 * ) new_mode=" none" ;;
9898 esac
9999
@@ -102,7 +102,7 @@ while true; do
102102 if [ " $new_mode " != " $last_mode " ]; then
103103 if [ " $(( current_time - change_time)) " -ge " $DEBOUNCE_TIME " ]; then
104104 applied=0
105- if [ " $new_mode " = " wifi " ]; then
105+ if [ " $new_mode " = " Wi-Fi " ]; then
106106 for algo in bbr reno cubic; do
107107 if [ -f " $MODPATH /wlan_$algo " ]; then
108108 set_congestion " $algo " " $new_mode "
@@ -111,7 +111,7 @@ while true; do
111111 fi
112112 done
113113 [ " $applied " -eq 0 ] && set_congestion cubic " $new_mode "
114- elif [ " $new_mode " = " mobile " ]; then
114+ elif [ " $new_mode " = " Cellular " ]; then
115115 for algo in bbr reno cubic; do
116116 if [ -f " $MODPATH /rmnet_data_$algo " ]; then
117117 set_congestion " $algo " " $new_mode "
You can’t perform that action at this time.
0 commit comments