Patch at boot time

Andy Stone andy at darkfox.co.uk
Fri Dec 17 14:32:21 UTC 2004


Fernando San Martín Woerner wrote:
> Hi all!:
> 
> 
> i need to run a patch for my video card at boot time, in mandrake i put
> the line in rc.local, how can i do this in ubuntu?
> 
> regards
> 

Ferdinand,

I am new to Ubuntu myself having recently switched from Gentoo.  I
believe the following will work but confirmation from more experienced
users would be good (and also I can't vouch for whether this is the most
elegant or officially approved way of doing it):

[1] Place your script into the directory '/etc/init.d/'
[2] Make sure its executable
[3] Link to it from the folder representing whichever runlevel you want
it to start at.  So if you want it to start before most other things,
put the link in '/etc/rcS.d/', or if you want it to only start if
runlevel 5 is reached, put the link in '/etc/rc5.d/' instead.
[4] Make sure to name the link such that it begins with an 'S'

Thanks
Andy





More information about the ubuntu-users mailing list