Powertop init script

Hi together,

i want to use the powertop --auto-tune as an init script, so that it is executed after each restart of the machine.

But it seems that it doesn’t work. I add the command sudo powertop --auto-tune and it should run post init. Does anyone know what I’m doing wrong?

Leaving aside why you’d want it (as its manpage makes it sound like it’s a tool for minimizing power consumption on a laptop, which is really never a suitable TrueNAS host), remove sudo from the command, run it as root, and include the full path to the binary (/sbin/powertop).