update kernel version check

Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
Teddysun 2017-02-23 22:34:49 +09:00
parent 092d2b1165
commit 36afe7729d
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

2
bbr.sh
View File

@ -97,7 +97,7 @@ centosversion() {
check_bbr_status() { check_bbr_status() {
local param=$(sysctl net.ipv4.tcp_available_congestion_control | awk '{print $3}') local param=$(sysctl net.ipv4.tcp_available_congestion_control | awk '{print $3}')
if uname -r | grep -Eqi "4.9."; then if uname -r | grep -Eqi "4.10."; then
if [[ "${param}" == "bbr" ]]; then if [[ "${param}" == "bbr" ]]; then
return 0 return 0
else else