[ltp] Network connection and bootup

André Wyrwa linux-thinkpad@linux-thinkpad.org
Sat, 08 Nov 2003 16:04:31 +0100


> I have thought about using another bootup script which starts and stops
> the relevant daemons.  This script will go in start_fn and stop_fn in
> /etc/pmcia/network.opts.  I had an abortive attempt at putting _all_
> network daemon bootup scripts in this function, with pretty bad results.

Why don't you let your scripts be called from ipup/ipdown?

Issue with that is that is that they would be run on enabling any
network connection (local net or ppp).

But then you could probe inside the scripts for which kind of connection
you have and act accordingly. For probing maybe the best thing would be
to test for the current gateways ip?