浏览代码

Update sku.sh

蘭雅sRGB 6 年之前
父节点
当前提交
211c3ebc06
共有 1 个文件被更改,包括 13 次插入1 次删除
  1. 13 1
      sku.sh

+ 13 - 1
sku.sh

@@ -32,8 +32,20 @@ mv udp2raw_amd64 /usr/bin/udp2raw
 rm udp2raw* -rf
 rm version.txt
 
-#安装到启动项 适合debian 9 x64
 
+sysctl_config() {
+    sed -i '/net.core.default_qdisc/d' /etc/sysctl.conf
+    sed -i '/net.ipv4.tcp_congestion_control/d' /etc/sysctl.conf
+    echo "net.core.default_qdisc = fq" >> /etc/sysctl.conf
+    echo "net.ipv4.tcp_congestion_control = bbr" >> /etc/sysctl.conf
+    sysctl -p >/dev/null 2>&1
+}
+
+# 开启 BBR
+sysctl_config
+lsmod | grep bbr
+
+#安装到启动项 适合debian 9 x64
 cat <<EOF >/etc/rc.local
 #!/bin/sh -e
 #