I want to run a command or script as root while booting, like just before login. I have tried the solution i used until 17.10, but after a fresh install of 18.04, I no longer have an /etc/rc.local. The command is hdparm -y /dev/sdc to put that drive into sleep, but it only works with root.
Thanks for any help.