mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Merge pull request #1660 from RaspAP/fix/tcp-bbr-modprobe-intree
Revise tcp_bbr check method
This commit is contained in:
commit
3889e2f04d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user