From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-dev-return-1886-arch-gentoo-dev=gentoo.org@gentoo.org> Received: (qmail 31541 invoked by uid 1002); 17 Mar 2003 15:34:40 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: <mailto:gentoo-dev@gentoo.org> List-Help: <mailto:gentoo-dev-help@gentoo.org> List-Unsubscribe: <mailto:gentoo-dev-unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-dev-subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 18378 invoked from network); 17 Mar 2003 15:34:39 -0000 X-Authentication-Warning: oaktree.cisco.com: wmertens owned process doing -bs Date: Mon, 17 Mar 2003 16:35:30 +0100 (CET) From: Wout Mertens <wmertens@gentoo.org> X-X-Sender: wmertens@oaktree.cisco.com To: Joseph Carter <knghtbrd@efn.org> cc: Frederick Reeve <frederick@woodland-i.org>, Alain Penders <alain@gentoo.org>, gentoo-dev@gentoo.org In-Reply-To: <20030309225813.GB11374@galen.bluecherry.net> Message-ID: <Pine.GSO.4.53.0303171625360.15485@oaktree.cisco.com> References: <1047156369.6631.31.camel@localhost.localdomain> <20030309070831.GB23088@purematrix.com> <1047204127.6574.10.camel@localhost.localdomain> <20030309225813.GB11374@galen.bluecherry.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [gentoo-dev] net.eth0 X-Archives-Salt: 01eb832e-3987-41a4-a770-0260c9c64f58 X-Archives-Hash: ae51898a1726de7544a909808a61eb95 On Sun, 9 Mar 2003, Joseph Carter wrote: > On Sun, Mar 09, 2003 at 11:02:07AM +0100, Frederick Reeve wrote: > I'd suggest setting a few environment vars and throwing run-parts at a > directory after the interface is brought up. These can, eg, check to see > if apache has been started yet and restart it if necessary. They could > also, for wireless links, start aphopper (probably only appropriate when > that program matures a little more), or other things like that. Really > there are lots of possibilities here. I guess Azarah could add support for a /etc/net.d/ directory with scripts that are called with the arguments <interface> <state>. Or something along those lines. I know I would like something that reconfigures my wwwoffle for the current network automatically. > For those interfaces which support it (e100 does at least), you could use > ifplugd (not yet in portage because I've gotten too busy of late to finish > the ebuild and submit it) and it would then automatically recheck for a > DHCP server and restart necessary services upon plugging in the network > cable. Well, I've been playing with mii-tool, and I made a script that did this, but I had some problems with daemonization, and in the end I just wrote the ebuild for ifplugd. I just committed it, so give it a whirl. (it's in ~x86) It's really easy, just start it with the init script and it will bring up the interface if possible. Cheers, Wout. -- gentoo-dev@gentoo.org mailing list