On Wed, May 15, 2002 at 10:10:48PM +0100, Graeme Mathieson wrote: > On Wed, May 15, 2002 at 10:56:58AM +0200, Chris Halls wrote: > > On Tue, May 14, 2002 at 03:06:15PM +0100, Graeme Mathieson wrote: > > > Description : Bring up or down Ethernet interfaces upon change of > > > MII > > > link state > > > > This looks useful. I don't know what you were planning on doing with the > > events generated by miid, but I wonder if you would consider providing some > > sort of event.d directory like apmd does, perhaps using run-parts to call > > each script with two parameters: up|down and <interface>. > > I'm planning to (and, in fact, currently do on my own laptop) just > run `/sbin/ifup <dev>` when link state is first detected and > `/sbin/ifdown <dev>` when it disappears. It does all the hard work for > me. :-) Including if-up.d and if-down.d which I guess is what you're > looking for?
Ah, good point :) Well, whereami doesn't have hooks in if-up.d and if-down.d, because it plays a part in configuring the interface, too. We have considered improving its integration, but it hasn't been done yet. I think you're right, that it would be better to integrate via ifup/down and its mechanisms, and hooking into miid would be possibly easier but not really the best solution. Thanks, Chris -- Chris Halls | Frankfurt, Germany
pgpJX9HpDl4z7.pgp
Description: PGP signature