I'm not sure how this is a duplicate of anything that was mentioned.
The script I'm trying to run needs Sudo to work, none of the answers say anything about getting a script that needs "super user" privelages to run at startup.
None of the answers have worked so far, I think Upstart would need my password in it somewhere to run the sh.
I'm trying to run a sudo sh at startup, none of these methods seem to work.
I tried adding
sudo //usr/local/include/temp_throttle.sh 80
to Startup Applications. It doesn't run or even ask for password.
gksudo //usr/local/include/temp_throttle.sh 80
to Startup Applications. It pops up asking for a Password for almost half a second then dissappears but doesn't run.
I tried making a
.desktop file and tested it, it runs it but not in
sudo so it doesn't work.
Just tried putting my
/etc/init.d/ and used
update-rc.d. It runs the script at startup but without sudo privlages so it doesn't work.
I'm not sure what to do to make this work.
Note, Upstart is installed and working but will not launch this script properly.