mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +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
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue