Write a script in a text editor. put it in the /etc/init.d/ directory.
Lets say you called it FOO. You then run
sudo update-rc.d FOO defaults
You also have to make the file you created, FOO, executable:
sudo chmod +x /etc/init.d/FOO
Write a script in a text editor. put it in the /etc/init.d/ directory.
Lets say you called it FOO. You then run
sudo update-rc.d FOO defaults
You also have to make the file you created, FOO, executable:
sudo chmod +x /etc/init.d/FOO
May 2, 2007 at 2:57 pm
Thanks
you saved my time.
Regards
Hasnain
October 9, 2007 at 1:28 pm
Straight to the point and just what I needed. Thanks!
November 8, 2007 at 9:09 am
Thank you very much for this! google lead me to you so i had to leave a message
December 14, 2007 at 6:57 pm
You’re a STAR!
Been struggling with this for a few hours but now have mp3s streaming around my house every time i reboot the server without any messing around…
Thanks buddy!
December 19, 2007 at 3:43 am
Watch out though. If the script you run doesn’t execute correctly, then the system may not complete booting. That’s what happened to me!
January 9, 2008 at 10:07 pm
I’m a newbie to ubuntu and this was excellent!! Thanks
February 7, 2008 at 9:19 am
thanks,
will try it on my machine
February 18, 2008 at 9:54 am
Cool, chears.
February 26, 2008 at 3:59 am
simple yet useful script..thanks!
February 26, 2008 at 10:19 am
Works perfectly. Thanks!
February 28, 2008 at 9:34 am
simple, powerful ! thanks
August 21, 2008 at 8:55 pm
I did it and I don’t like what I did.
How can I undo the startup script?
October 17, 2008 at 12:30 pm
Nice ^_^! I won’t start my wireless connection from a terminal again
. Blessings and thanks for share!
October 28, 2008 at 11:07 pm
Thanks, just what I needed.
To the person requesting info on removing the startup script:
update-rc.d -f FOO remove
(The -f switch tells it to force the removal. Was necessary for me, not sure if always.)
November 5, 2008 at 10:48 am
cool. auto mounting starcraft right…..meow!
November 27, 2008 at 11:21 am
Thank you so much! That was so very useful!
September 19, 2009 at 11:59 pm
hi,
will the above command runs the script in background.if not how to do it.becoz my script has infinte while loop
thanq
September 23, 2009 at 6:15 am
Thanks so much! For some reason my fstab wasn’t keeping any of my changes, so I made a startup script using this tutorial to do the mounting. Worked the first time, and I’d spent hours previously messing with fstab.
October 10, 2009 at 11:06 am
Tks a lot my friend!!!