Update qBittorrent_install.sh

This commit is contained in:
jerry048 2023-02-27 02:52:24 +08:00
parent 3cbd0f9a0f
commit 270e7d273b
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ EOF
function qBittorrent_config {
## Determine if it is a SSD or a HDD and tune certain parameters
disktype=$(cat /sys/block/sda/queue/rotational)
disk_name=$(printf $(lsblk | grep -m1 'disk' | awk '{print $1}'))
disktype=$(cat /sys/block/$disk_name/queue/rotational)
if [ "${disktype}" == 0 ]; then
aio=12
low_buffer=5120