This commit is contained in:
jerry048 2021-05-27 19:38:30 +08:00
parent c77ce2e584
commit d03898db2a
2 changed files with 13 additions and 12 deletions

View File

@ -20,25 +20,25 @@ function qBittorrent_download {
do do
case $opt in case $opt in
"qBittorrent 4.1.9 - libtorrent-1_1_14") "qBittorrent 4.1.9 - libtorrent-1_1_14")
version=4.1.9; curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.1.9%20-%20libtorrent-1_1_14/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break version=4.1.9; wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.1.9%20-%20libtorrent-1_1_14/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break
;; ;;
"qBittorrent 4.1.9.1 - libtorrent-1_1_14") "qBittorrent 4.1.9.1 - libtorrent-1_1_14")
version=4.1.9.1; curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.1.9.1%20-%20libtorrent-1_1_14/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break version=4.1.9.1; wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.1.9.1%20-%20libtorrent-1_1_14/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break
;; ;;
"qBittorrent 4.3.3 - libtorrent-v1.2.12-Lactency") "qBittorrent 4.3.3 - libtorrent-v1.2.12-Lactency")
version=4.3.3; curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.3%20-%20libtorrent-v1.2.12-Lactency/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break version=4.3.3; wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.3%20-%20libtorrent-v1.2.12-Lactency/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break
;; ;;
"qBittorrent 4.3.3 - libtorrent-v1.2.13") "qBittorrent 4.3.3 - libtorrent-v1.2.13")
version=4.3.3; curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.3%20-%20libtorrent-v1.2.13/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break version=4.3.3; wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.3%20-%20libtorrent-v1.2.13/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break
;; ;;
"qBittorrent 4.3.4.1 - libtorrent-v1.2.13-Lactency") "qBittorrent 4.3.4.1 - libtorrent-v1.2.13-Lactency")
version=4.3.4.1; curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.4.1%20-%20libtorrent-v1.2.12-Lactency/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break version=4.3.4.1; wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.4.1%20-%20libtorrent-v1.2.12-Lactency/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break
;; ;;
"qBittorrent 4.3.4.1 - libtorrent-v1.2.13") "qBittorrent 4.3.4.1 - libtorrent-v1.2.13")
version=4.3.4.1; curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.4.1%20-%20libtorrent-v1.2.13/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break version=4.3.4.1; wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.4.1%20-%20libtorrent-v1.2.13/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break
;; ;;
"qBittorrent 4.3.5 - libtorrent-v1.2.13") "qBittorrent 4.3.5 - libtorrent-v1.2.13")
version=4.3.5; curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.5%20-%20libtorrent-v1.2.13/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break version=4.3.5; wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.5%20-%20libtorrent-v1.2.13/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break
;; ;;
*) tput setaf 1; echo "Please choose a valid version";; *) tput setaf 1; echo "Please choose a valid version";;
esac esac
@ -93,7 +93,7 @@ WebUI\Port=8080
WebUI\Username=$username WebUI\Username=$username
EOF EOF
elif [[ "${version}" =~ "4.2."|"4.3." ]]; then elif [[ "${version}" =~ "4.2."|"4.3." ]]; then
curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Miscellaneous/qb_password_gen && chmod +x $HOME/qb_password_gen wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Miscellaneous/qb_password_gen && chmod +x $HOME/qb_password_gen
PBKDF2password=$($HOME/qb_password_gen $password) PBKDF2password=$($HOME/qb_password_gen $password)
cat << EOF >/home/$username/.config/qBittorrent/qBittorrent.conf cat << EOF >/home/$username/.config/qBittorrent/qBittorrent.conf
[LegalNotice] [LegalNotice]
@ -138,8 +138,9 @@ function Decision2 {
} }
function autoremove-torrents { function autoremove-torrents {
tput setaf 7 tput setaf 7
apt-get -qqy install python3-distutils > /dev/null apt-get -qqy install python3-distutils
apt-get -qqy install python3-apt > /dev/null apt-get -qqy install python3-apt
apt-get -qqy install curl
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py python3 get-pip.py
rm get-pip.py rm get-pip.py

View File

@ -473,7 +473,7 @@ function BBR_Prepare {
echo "deb http://deb.debian.org/debian buster-backports main" | sudo tee -a /etc/apt/sources.list echo "deb http://deb.debian.org/debian buster-backports main" | sudo tee -a /etc/apt/sources.list
apt-get -qqy update apt-get -qqy update
apt-get -qqy install linux-image-5.9.0-0.bpo.5-amd64 apt-get -qqy install linux-image-5.9.0-0.bpo.5-amd64
curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/BBR/BBR.sh && chmod +x BBR.sh wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/BBR/BBR.sh && chmod +x BBR.sh
tput setaf 1 tput setaf 1
} }
function BBR_Tweaking { function BBR_Tweaking {
@ -482,7 +482,7 @@ function BBR_Tweaking {
apt-get -qqy install dkms > /dev/null apt-get -qqy install dkms > /dev/null
apt-get -qqy install linux-headers-$(uname -r) > /dev/null apt-get -qqy install linux-headers-$(uname -r) > /dev/null
tput setaf 7 tput setaf 7
curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/BBR/5.9.0/tcp_bbrx.c wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/BBR/5.9.0/tcp_bbrx.c
kernel_ver=5.9.0 kernel_ver=5.9.0
algo=bbrx algo=bbrx
bbr_file=tcp_$algo bbr_file=tcp_$algo