Update BBR.sh
This commit is contained in:
parent
d9ebdf6fe6
commit
dc3ea28bf5
|
@ -6,8 +6,14 @@ cd $HOME
|
||||||
## This part of the script is modified from https://github.com/KozakaiAya/TCP_BBR
|
## This part of the script is modified from https://github.com/KozakaiAya/TCP_BBR
|
||||||
apt-get -qqy install dkms
|
apt-get -qqy install dkms
|
||||||
apt-get -qqy install linux-headers-$(uname -r)
|
apt-get -qqy install linux-headers-$(uname -r)
|
||||||
wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Miscellaneous/BBR/5.10.0/tcp_bbrx.c
|
distro_codename="$(source /etc/os-release && printf "%s" "${VERSION_CODENAME}")"
|
||||||
kernel_ver=5.10.0
|
if [[ $distro_codename = buster ]]; then
|
||||||
|
wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Miscellaneous/BBR/5.10.0/tcp_bbrx.c
|
||||||
|
kernel_ver=5.10.0
|
||||||
|
else if [[ $distro_codename = bullseye ]] ; then
|
||||||
|
wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Miscellaneous/BBR/5.15.0/tcp_bbrx.c
|
||||||
|
kernel_ver=5.15.0
|
||||||
|
fi
|
||||||
algo=bbrx
|
algo=bbrx
|
||||||
bbr_file=tcp_$algo
|
bbr_file=tcp_$algo
|
||||||
bbr_src=$bbr_file.c
|
bbr_src=$bbr_file.c
|
||||||
|
|
Loading…
Reference in New Issue