Skip to content

Commit

Permalink
修复状态识别bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chiakge committed Nov 11, 2017
1 parent 9354196 commit 96d9a51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ export PATH
#=================================================
# System Required: CentOS 6+,Debian7+,Ubuntu12+
# Description: BBR+BBR魔改版+Lotserver
# Version: 1.0.3
# Version: 1.0.4
# Author: 千影
# Blog: https://www.94ish.me/
#=================================================

sh_ver="1.0.3"
sh_ver="1.0.4"
github="raw.githubusercontent.com/chiakge/Linux-NetSpeed/master"

Green_font_prefix="\033[32m" && Red_font_prefix="\033[31m" && Green_background_prefix="\033[42;37m" && Red_background_prefix="\033[41;37m" && Font_color_suffix="\033[0m"
Expand Down Expand Up @@ -526,14 +526,14 @@ check_status(){
elif [[ ${kernel_status} == "BBR" ]]; then
run_status=`grep "net.ipv4.tcp_congestion_control" /etc/sysctl.conf | awk -F "=" '{print $2}'`
if [[ ${run_status} == "bbr" ]]; then
run_status=`lsmod | grep "tcp" | awk '{print $1}'`
run_status=`lsmod | grep "bbr" | awk '{print $1}'`
if [[ ${run_status} == "tcp_bbr" ]]; then
run_status="BBR启动成功"
else
run_status="BBR启动失败"
fi
elif [[ ${run_status} == "tsunami" ]]; then
run_status=`lsmod | grep "tcp" | awk '{print $1}'`
run_status=`lsmod | grep "tsunami" | awk '{print $1}'`
if [[ ${run_status} == "tcp_tsunami" ]]; then
run_status="BBR魔改版启动成功"
else
Expand Down

0 comments on commit 96d9a51

Please sign in to comment.