File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,6 @@ VOWIFI_CONNECT_TIME=10
9
9
# Get the list of available congestion control algorithms
10
10
congestion_algorithms=$( cat /proc/sys/net/ipv4/tcp_available_congestion_control)
11
11
12
- # On startup, reset description to default
13
- if [ -f " $MODPATH /module.prop" ]; then
14
- default_desc=" TCP Optimisations & update tcp_cong_algo based on interface"
15
- sed -i ' /^description=/d' " $MODPATH /module.prop" && echo " description=$default_desc " >> " $MODPATH /module.prop"
16
- fi
17
-
18
12
update_description () {
19
13
local iface=" $1 "
20
14
local algo=" $2 "
@@ -129,6 +123,11 @@ apply_cellular_settings() {
129
123
130
124
# Start Run Code
131
125
126
+ # On startup, reset description to default
127
+ if [ -f " $MODPATH /module.prop" ]; then
128
+ default_desc=" TCP Optimisations & update tcp_cong_algo based on interface"
129
+ sed -i ' /^description=/d' " $MODPATH /module.prop" && echo " description=$default_desc " >> " $MODPATH /module.prop"
130
+ fi
132
131
133
132
# IPv4 TCP optimizations
134
133
echo 1 > /proc/sys/net/ipv4/tcp_ecn 2> /dev/null
You can’t perform that action at this time.
0 commit comments