bergware / dynamix

51 stars 38 forks source link

Fix checking of drive status using sdspin #86

Open tricksunga opened 7 months ago

tricksunga commented 7 months ago

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.