From 6beda2ea1222c315147c124fe076c31c85c7e421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 26 Apr 2024 15:44:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=20bbr=20=E6=A3=80?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/install_panel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_panel.sh b/scripts/install_panel.sh index 4c7d0761..404bf1e7 100644 --- a/scripts/install_panel.sh +++ b/scripts/install_panel.sh @@ -111,7 +111,7 @@ Prepare_System() { fi # 自动开启 BBR - isBBRSupported=$(sysctl net.ipv4.tcp_available_congestion_control | grep -c bbr) + isBBRSupported=$(ls -l /lib/modules/*/kernel/net/ipv4/tcp_bbr.ko.xz | grep -c bbr) if [ "${isBBRSupported}" != "0" ]; then qdisc=$(sysctl net.core.default_qdisc | awk '{print $3}') echo "net.core.default_qdisc=${qdisc}" >> /etc/sysctl.conf