Re: calling up scripts
G'day Stef,
debian has /etc/init.d/ where you put your scripts, and then /etc/rcX.d (S,
for stuff that starts always, and 1-6 for the various runlevels.. 2 being
the standard runlevel.) where you put symlinks to your scripts..
So you'd want to create say an /etc/init.d/startax25.sh (make sure to make
it executable..), then jump into /etc/rc2.d and ln -s ../init.d/startax25.sh
SXXstartax25
(where XX is a number between 00 and 99 which sets the starting order.. -
you'll probably want something after 80 or so ? depends on when you want it
to start..)
These scripts are *supposed* to take a 'start' or 'stop' from the command
line, as they're called at startup AND shutdown, though a lot of the time I
don't bother implementing a stop..
Cheers,
Damien
--
Damien Gardner Jnr
VK2TDG. Dip EE. StudIEAust
Home: rendrag@rendrag.net - http://www.rendrag.net/
Play: vk2tdg@pinegap.net - http://pinegap.net/
--
We rode on the winds of the rising storm,
We ran to the sounds of thunder.
We danced among the lightning bolts,
and tore the world asunder
Reply to: