On Tue, Sep 02, 2003 at 10:39:44AM -0400, David Z Maze wrote:
> My laptop has two fixed (e.g., not PCMCIA) network cards, one wired
> and one wireless (802.11a/b combo).  Both are set up by default to use
> DHCP in /etc/network/interfaces, and right now the wired card comes up
> first.  I'd like to not wait to a DHCP timeout if I don't need to.  I
> also know the question "is there an Ethernet cable connected" can be
> asked, though not how.  Also, I don't want both the wired and wireless
> up the vast majority of the time.
> 

Ifplugd (in sid/testing) should do the trick:

Description: A configuration daemon for ethernet devices
 ifplugd is a daemon which will automatically configure your
 ethernet device when a cable is plugged in and automatically
 unconfigure it if the cable is pulled. This is useful on laptops with
 onboard network adapters, since it will only configure the interface
 when a cable is really connected.

HTH

DT

-- 
Dave Thayer           | If trees could scream, would we be so cavalier about
Denver, Colorado USA  | cutting them down? We might, if they screamed all
[EMAIL PROTECTED] | the time, for no good reason. - Jack Handey


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to