From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8503 invoked by uid 1002); 21 Mar 2003 15:40:55 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 21397 invoked from network); 21 Mar 2003 15:40:55 -0000 Date: Fri, 21 Mar 2003 16:42:00 +0100 (CET) From: Wout Mertens To: Martin Schlemmer cc: Wout Mertens , Joseph Carter , Frederick Reeve , Alain Penders , gentoo-dev@gentoo.org In-Reply-To: <20030321084308.4165b981.azarah@gentoo.org> Message-ID: References: <1047156369.6631.31.camel@localhost.localdomain> <20030309070831.GB23088@purematrix.com> <1047204127.6574.10.camel@localhost.localdomain> <20030309225813.GB11374@galen.bluecherry.net> <20030318204448.64d78950.azarah@gentoo.org> <20030321084308.4165b981.azarah@gentoo.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [gentoo-dev] net.eth0 X-Archives-Salt: eff7b5ce-3e3f-4576-8b1c-c4b07ad0c44d X-Archives-Hash: a916cd8488917c6ea7dfaff026a4463a On Fri, 21 Mar 2003, Martin Schlemmer wrote: > On Wed, 19 Mar 2003 15:46:37 +0100 (CET) > Wout Mertens wrote: > > > activate_eth0="dhcp static" > > activate_eth1="iwconfig static dhcp leap" > > activate_ppp0="ppp" # Extra parameters in net.ppp0 > > events_eth0="apache" > > events_ppp0="dyndns" > > events_global="wwwoffled chronyd" > > > > What do you think? I think this would be able to take all the things I > > tried to do over the last few years :) > > Err, mind explaining a bit over here ? Well, instead of hard-coding a few ways (ifconfig parameters or dhcp) of bringing up the network interfaces, I propose a modular approach, where a few functions/scripts are defined that can bring up the interface, and you can define which ones you like in what order. To bring up the interface, they will be called in order until one succeeds. On top of that, I propose the same thing, but for events about network interfaces. That way, you can add in dyndns clients, reconfigure applications etc. Configuration is still done through /etc/conf.d/net. I have done a lot of weird stuff with my network scripts over the last few years, and this approach would be able to do all the things I can remember, in a way that can be automated and clean. > > We could start prototyping something in a separate ebuild, > > sys-apps/gentoo-net or something, and when it is stable, merge it back > > in baselayout. > > Could work Well, if there are no takers, I think I'll give that approach a whirl and see what happens. Wout. -- gentoo-dev@gentoo.org mailing list