Did you try adding the commands to /etc/rc.local as the link suggested? I'm not sure why that would be different to /etc/init.d/ scripts but it's worth a try?
|
SuSE hasn't got a rc.local, so I couldn't try that.
|
Re suid on scripts; I knew that but from post #9 it looked like powertop is a cpp thus binary exe.
Maybe its different for you, but normally the boot process has to run as root to do all the privileged things it needs to do, although some sub-processes may be run as a different user for their own reasons. On eg RHEL, you'd have have an entry in /etc/rc.d/rc.local like Code:
su - user -c "cmd args" |
I found out what SuSE did to rc.local ;), since Google is my friend :D. They created an "/etc/init.d/after.local", a "script with local commands to be executed from init after all scripts of a runlevel have been executed". I appended
Code:
su - root -c /etc/init.d/<my-script> Quote:
Quote:
Quote:
Code:
su - root -c "cmd >> /home/me/error.txt 2>&1" <edit2> Found out why: "su" is asking for a password. I created a test-script and ran that from console. [enter favourite expletives here]. What now? |
There is nothing "magical" about the /usr/sbin directory ...
|
Thanks for stating the obvious :). Do you also propose a solution for the Problem?
|
All times are GMT -5. The time now is 06:40 AM. |