Merge pull request #1660 from RaspAP/fix/tcp-bbr-modprobe-intree

Revise tcp_bbr check method
This commit is contained in:
Bill Zimmerman 2024-09-14 11:36:33 +02:00 committed by GitHub
commit 3889e2f04d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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