I want to run a script as root when the computer starts. This was earlier done in rc.local, but not anymore.What I've tried:putting the script in /etc/profile.dadding the /pathto/script.sh in /etc/profileadded /pathto/script.sh & in /etc/xdg/openbox/autostartThe script is for setting things powertop recommends; the script works just fine when I run sudo /pathto/script.sh.
Openbox root autostart?
openbox;powertop
You could put it in your crontab with@reboot /pathto/script.sh