mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Revise tcp_bbr check method, resolves #1656
This commit is contained in:
parent
57199def06
commit
fa42e0c3f1
1 changed files with 1 additions and 2 deletions
|
@ -842,8 +842,7 @@ function _configure_tcp_bbr() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _check_tcp_bbr_available() {
|
function _check_tcp_bbr_available() {
|
||||||
config_file="/boot/config-$(uname -r)"
|
if [[ "$(modinfo -F intree tcp_bbr)" == "y" ]]; then
|
||||||
if grep -q 'CONFIG_TCP_CONG_BBR' "$config_file" && grep -q 'CONFIG_NET_SCH_FQ' "$config_file"; then
|
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Reference in a new issue