I try to run a script (tpfand) at startup, and it asked to be root to execute it.
This is a script to control the fans on Thinkpad computers.
Despite several attempts, I could not get ...
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityThe classic place to put one-off stuff like this was rc.local
.
From the Fedora 16 release notes:
The
/etc/rc.d/rc.local local
customization script is no longer included by default. Administrators who need this functionality merely have to create this file, make it executable, and it will run on boot.
I'd say create /etc/rc.d/rc.local
like this:
#!/bin/sh
/path/to/tpfand
and chmod +x /etc/rc.d/rc.local
and you should be good to go.
systemd
. No idea why it shouldn't have one included already, though. (...or use this one)