From fa42e0c3f114e1a4578a0618cda1b3b947a7c0a5 Mon Sep 17 00:00:00 2001 From: billz Date: Sat, 14 Sep 2024 11:17:43 +0200 Subject: [PATCH] Revise tcp_bbr check method, resolves #1656 --- installers/common.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/installers/common.sh b/installers/common.sh index 7c490a06..ac47406a 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -842,8 +842,7 @@ function _configure_tcp_bbr() { } function _check_tcp_bbr_available() { - config_file="/boot/config-$(uname -r)" - if grep -q 'CONFIG_TCP_CONG_BBR' "$config_file" && grep -q 'CONFIG_NET_SCH_FQ' "$config_file"; then + if [[ "$(modinfo -F intree tcp_bbr)" == "y" ]]; then return 0 else return 1