mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Merge pull request #1686 from RaspAP/fix/check-tcp-bbr-available
Fix: Case insensitive modinfo return value check
This commit is contained in:
commit
54cf3132ad
@ -842,7 +842,7 @@ function _configure_tcp_bbr() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function _check_tcp_bbr_available() {
|
function _check_tcp_bbr_available() {
|
||||||
if [[ "$(modinfo -F intree tcp_bbr)" == "y" ]]; then
|
if [[ "$(modinfo -F intree tcp_bbr)" =~ ^[Yy]$ ]]; then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user