Change from #75 replaced using hdparm to sdspin on how to check if drive is spinning or not, the difference between the two is that hdparm returns a string while sdspin does not, it only returns exit code. This PR changes the if condition from comparing string from hdparm to comparing the exit code from sdspin.
Change from #75 replaced using
hdparm
tosdspin
on how to check if drive is spinning or not, the difference between the two is thathdparm
returns a string whilesdspin
does not, it only returns exit code. This PR changes the if condition from comparing string fromhdparm
to comparing the exit code fromsdspin
.