Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2006 00:56:01 +0000
From:      Phillip Neumann <pneumann@gmail.com>
To:        freebsd-mobile@freebsd.org
Subject:   devd.conf
Message-ID:  <1138582561.1895.4.camel@localhost>

next in thread | raw e-mail | index | archive | help
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.


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.

thanks in advance,

-- 
Phillip Neumann <pneumann@gmail.com>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1138582561.1895.4.camel>