Merge pull request #1686 from RaspAP/fix/check-tcp-bbr-available

Fix: Case insensitive modinfo return value check
This commit is contained in:
Bill Zimmerman 2024-10-29 10:19:39 +01:00 committed by GitHub
commit 54cf3132ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -842,7 +842,7 @@ function _configure_tcp_bbr() {
}
function _check_tcp_bbr_available() {
if [[ "$(modinfo -F intree tcp_bbr)" == "y" ]]; then
if [[ "$(modinfo -F intree tcp_bbr)" =~ ^[Yy]$ ]]; then
return 0
else
return 1