Update tweaking.sh

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

View File

@ -67,7 +67,8 @@ function Scheduler_Tweaking {
done done
i=1 i=1
x=0 x=0
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 if [ "${disktype}" == 0 ]; then
while [ $i -le $diskno ] while [ $i -le $diskno ]
do do