Changelog
- Added support for TrueNAS SCALE using
hdparminstead ofcamcontrol. The script automatically detects the environment it is run in.
Acknowledgements
Thanks to @derWalter, @Hafnernuss and everyone from the following thread that contributed information: https://www.truenas.com/community/threads/prevent-frequent-reads-from-waking-up-hdds.93176/
Further thanks to @Nex-Carter for providing access to a TrueNAS SCALE system for testing 👍