Startup Scripts?


jjoe

Still Fresh
Joined
Nov 25, 2005
Messages
19
If i make a script to run at boot, where do i put it, and how do you put it there?
 
jjoe posted on Dec 27 2005 at 10:09 AM said:
If i make a script to run at boot, where do i put it, and how do you put it there?

Where=In /etc/init.d -or- /etc/rc.d there should be directories named rc[0-5].d place the startup script there.

How= Use sterm to copy the script there make sure you follow the naming convention in that directory S/K[00-100]nameofscript.

S starts the script.
K Kills the script.

Hope that helps.

PS it might be a good Idea to link your script into the rc[0-5].d directory that way you can move it to another runlevel without having alot of duplicate files. :D
 
Last edited by a moderator:
You could also replace the gp2xmenu with a script, rename the menu to something else, do something, then run the renamed menu from the script.

Then the script would run every time the menu ran.

Edit: Probably not a good idea though.Best go with init scripts.
 
Back
Top