Update .boot-script.sh
This commit is contained in:
parent
0a2483d53f
commit
1b3c100320
|
@ -26,25 +26,17 @@ do
|
|||
drive+=($device)
|
||||
i=$(( $i + 1 ))
|
||||
done
|
||||
i=1
|
||||
x=0
|
||||
disktype=$(cat /sys/block/sda/queue/rotational)
|
||||
i=1 x=0
|
||||
while [ $i -le $diskno ]
|
||||
do
|
||||
diskname=$(eval echo ${drive["$x"]})
|
||||
disktype=$(cat /sys/block/$diskname/queue/rotational)
|
||||
if [ "${disktype}" == 0 ]; then
|
||||
while [ $i -le $diskno ]
|
||||
do
|
||||
diskname=$(eval echo ${drive["$x"]})
|
||||
echo kyber > /sys/block/$diskname/queue/scheduler
|
||||
i=$(( $i + 1 ))
|
||||
x=$(( $x + 1 ))
|
||||
done
|
||||
else
|
||||
while [ $i -le $diskno ]
|
||||
do
|
||||
diskname=$(eval echo ${drive["$x"]})
|
||||
echo mq-deadline > /sys/block/$diskname/queue/scheduler
|
||||
i=$(( $i + 1 ))
|
||||
x=$(( $x + 1 ))
|
||||
done
|
||||
fi
|
||||
i=$(( $i + 1 )) x=$(( $x + 1 ))
|
||||
done
|
||||
clear
|
||||
exit 0
|
Loading…
Reference in New Issue