Gentoo Archives: gentoo-dev

From: Wout Mertens <wmertens@g.o>
To: Joseph Carter <knghtbrd@×××.org>
Cc: Frederick Reeve <frederick@××××××××××.org>, Alain Penders <alain@g.o>, gentoo-dev@g.o
Subject: Re: [gentoo-dev] net.eth0
Date: Mon, 17 Mar 2003 15:34:40
Message-Id: Pine.GSO.4.53.0303171625360.15485@oaktree.cisco.com
In Reply to: Re: [gentoo-dev] net.eth0 by Joseph Carter
1 On Sun, 9 Mar 2003, Joseph Carter wrote:
2 > On Sun, Mar 09, 2003 at 11:02:07AM +0100, Frederick Reeve wrote:
3 > I'd suggest setting a few environment vars and throwing run-parts at a
4 > directory after the interface is brought up. These can, eg, check to see
5 > if apache has been started yet and restart it if necessary. They could
6 > also, for wireless links, start aphopper (probably only appropriate when
7 > that program matures a little more), or other things like that. Really
8 > there are lots of possibilities here.
9
10 I guess Azarah could add support for a /etc/net.d/ directory with scripts
11 that are called with the arguments <interface> <state>. Or something along
12 those lines. I know I would like something that reconfigures my wwwoffle
13 for the current network automatically.
14
15 > For those interfaces which support it (e100 does at least), you could use
16 > ifplugd (not yet in portage because I've gotten too busy of late to finish
17 > the ebuild and submit it) and it would then automatically recheck for a
18 > DHCP server and restart necessary services upon plugging in the network
19 > cable.
20
21 Well, I've been playing with mii-tool, and I made a script that did this,
22 but I had some problems with daemonization, and in the end I just wrote
23 the ebuild for ifplugd. I just committed it, so give it a whirl.
24 (it's in ~x86)
25
26 It's really easy, just start it with the init script and it will bring up
27 the interface if possible.
28
29 Cheers,
30
31 Wout.
32
33 --
34 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] net.eth0 Joseph Carter <knghtbrd@×××.org>
Re: [gentoo-dev] net.eth0 Martin Schlemmer <azarah@g.o>