|
@@ -629,7 +629,7 @@ check_status(){
|
|
|
run_status="未安装加速模块"
|
|
|
fi
|
|
|
elif [[ ${kernel_status} == "BBR" ]]; then
|
|
|
- run_status=`grep "net.ipv4.tcp_congestion_control" /etc/sysctl.conf | awk -F "=" '{print $2}'`
|
|
|
+ run_status=`grep "net.ipv4.tcp_congestion_control" /etc/sysctl.conf | awk -F "=" '{gsub("^[ \t]+|[ \t]+$", "", $2);print $2}'`
|
|
|
if [[ ${run_status} == "bbr" ]]; then
|
|
|
run_status=`lsmod | grep "bbr" | awk '{print $1}'`
|
|
|
if [[ ${run_status} == "tcp_bbr" ]]; then
|
|
@@ -655,7 +655,7 @@ check_status(){
|
|
|
run_status="未安装加速模块"
|
|
|
fi
|
|
|
elif [[ ${kernel_status} == "BBRplus" ]]; then
|
|
|
- run_status=`grep "net.ipv4.tcp_congestion_control" /etc/sysctl.conf | awk -F "=" '{print $2}'`
|
|
|
+ run_status=`grep "net.ipv4.tcp_congestion_control" /etc/sysctl.conf | awk -F "=" '{gsub("^[ \t]+|[ \t]+$", "", $2);print $2}'`
|
|
|
if [[ ${run_status} == "bbrplus" ]]; then
|
|
|
run_status=`lsmod | grep "bbrplus" | awk '{print $1}'`
|
|
|
if [[ ${run_status} == "tcp_bbrplus" ]]; then
|