2016-08-22, 23:59
(2016-08-22, 21:07)Sholander Wrote:The sleep just means it waits 10 seconds before seeing hdparm.(2016-08-22, 13:05)bmonster Wrote: This is what I have in the autostart.sh
Spindowns all 3 of my external drives after 10mins of inactivity.
Sleep command give the drives enough time to turn on, wouldn't work without this.
sleep 10 ;
IIRC "sleep" command without suffix "m" for minutes, "h" for hours, or "d" for days defaults to "s" seconds,
so your "sleep 10" will wait for 10 seconds, before execution.
My external USB drives need 60 sec delay before autostart.sh executes hdparm command to spin them down.
The hdparm -s 120 is what specifies the 10 minutes.
-s is time in seconds x5 so the value of 120 is actually 600 seconds.
Sent from my ONEPLUS A3003