Update _check_tcp_bbr_available() case insensitive

This commit is contained in:
billz 2024-10-29 02:14:06 -07:00
parent 9e52cda593
commit 2f4680bc23

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