Re: devd.conf

Brooks Davis <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
On Mon, Jan 30, 2006 at 12:56:01AM +0000, Phillip Neumann wrote:
> Im trying to understand devd.conf.
> 
> there is a text, wich is:
> # Try to start dhclient on Ethernet like interfaces when the link comes
> # up.  Only devices that are configured to support DHCP will actually
> # run it.  No link down rule exists because dhclient automaticly exits
> # when the link goes down.
> 
> when i unplug the rj45, i dont see dhclient quitting. i have to ifconfig
> the interface down. only so, dhclient will exit. 
> 
> base in this, if i modify devd.conf and add this line:
> notify 0 {
>         match "system"          "IFNET";
>         match "type"            "LINK_DOWN";
>         media-type              "ethernet";
>         action "/etc/rc.d/dhclient stop $subsystem";
> };
> 
> when i unplug the cable it will stop dhclient, but, when i plug the
> cable in again, devd sees 2 events, the LINK_UP and inmedialy it see a
> LINK_DOWN, so dhclient is stopped.

Your network card's driver has a broken if_media configuration.  What
kind of nic is it?

> whats the correct way to configure the ethernet cards?
> 
> is there a way to make something similar work to wifi card? i.e. when
> its assisiated with a ssid, run dhclient, and when no carrier, stop it?
> 
> i have run devd -dD, but it does not seems to get any event from the
> wifi card. its an intel 2200.

If your card is running wpa_supplicant, this is exactly what should
happen.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFD3oF/XY6L6fI4GtQRAq6OAKDSiPAScqHOzrX3afKOSW4fV7Fs1QCcC/lh
t2hzmj2dHfNz4O6PFhf9cmY=
=h4xw
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.