You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
401 B
15 lines
401 B
_open_bbr() {
|
|
sed -i '/net.ipv4.tcp_congestion_control/d' /etc/sysctl.conf
|
|
sed -i '/net.core.default_qdisc/d' /etc/sysctl.conf
|
|
echo "net.ipv4.tcp_congestion_control = bbr" >>/etc/sysctl.conf
|
|
echo "net.core.default_qdisc = fq" >>/etc/sysctl.conf
|
|
sysctl -p >/dev/null 2>&1
|
|
}
|
|
|
|
if [[ $(uname -r | cut -b 1) -eq 4 ]]; then
|
|
case $(uname -r | cut -b 3-4) in
|
|
9. | [1-9][0-9])
|
|
_open_bbr
|
|
;;
|
|
esac
|
|
fi
|
|
|