[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to manager different network environments?



I'm going to be in a similar situation soon where I will be swapping network
locations but I will be using an inbuilt network device, not a pcmcia card.
How would I also get to autodetect when the network cable has been plugged
in and then start the network services, and stop the same services when it
is unplugged.
With pcmcia you just look for the card but it would be harder with a network
cable

Craig

----- Original Message -----
From: "Mariano Kamp" <mkamp@gmx.de>
To: "Andrew McMillan" <andrew@catalyst.net.nz>;
<debian-laptop@lists.debian.org>
Cc: "Chris Halls" <chris.halls@gmx.de>
Sent: Sunday, November 03, 2002 8:57 PM
Subject: Re: How to manager different network environments?


> Hi Andrew, Chris,
> > >   meanwhile I installed whereami and do my first steps.
> > >
> > >   Currently I am working on my wlan card and am wondering why whereami
> > > is triggered in /etc/pcmcia/network when the card is inserted, but not
> > > when it is removed?
> >
> > Hmmmm...  It should do that too, I guess, but I don't think that pcmcia
> > has any hooks to trigger things on removal.
> >
> > I will look into it.
> Unfortunately I don't have a clue about scripts yet. I tried to copy the
> hook for whereami from the start section of the network script to the
> stop section, but without much success. Whereami is called then, but
> unfortunately before the removal of the wlan modules, so that whereami
> still detects them.
>
> > >  On lwe I've seen on Chris' laptop, that whereami was triggered when
he
> > > plugged the ethernet cable?! How is that to be accomplished?
> >
> > That's tricky!   I know there is a daemon in laptop-net that monitors
> > the mii status for cable insertion.  I have been thinking of merging
> > some of that into whereami, but only discovered it last week.
> >
> > Not sure what Chris is doing - perhaps he could elucidate!
> It's not a top priority for me. I was keen to use it, but more for the
> fun than that I really need it ;-)
>
> Cheers,
> Mariano
>
>
> --
> To UNSUBSCRIBE, email to debian-laptop-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
>
>
>



Reply to: