From owner-freebsd-mobile@FreeBSD.ORG Mon Jan 30 00:56:09 2006 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DB1116A420 for ; Mon, 30 Jan 2006 00:56:09 +0000 (GMT) (envelope-from pneumann@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBF3D43D46 for ; Mon, 30 Jan 2006 00:56:08 +0000 (GMT) (envelope-from pneumann@gmail.com) Received: by wproxy.gmail.com with SMTP id i5so1065161wra for ; Sun, 29 Jan 2006 16:56:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=kprrMjwhok+SGocVPdp95+azdV9j9Ws/eVBoI52jBBiXwWpnSydC2n00pQkC7qt8iGuyUggZDJtfwwSBiUJEaojWSCOP+kvrGmhthmAgZDXV5utw9w6xuga2xRPTLapiFUpWtgzp7+EOw2oOR/3Iv0LtmXca3fI2EvsV1FLQM0E= Received: by 10.54.156.20 with SMTP id d20mr6318601wre; Sun, 29 Jan 2006 16:56:07 -0800 (PST) Received: from ?10.0.0.100? ( [200.74.123.191]) by mx.gmail.com with ESMTP id 35sm462851wra.2006.01.29.16.56.06; Sun, 29 Jan 2006 16:56:06 -0800 (PST) From: Phillip Neumann To: freebsd-mobile@freebsd.org Content-Type: text/plain Date: Mon, 30 Jan 2006 00:56:01 +0000 Message-Id: <1138582561.1895.4.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: devd.conf X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2006 00:56:09 -0000 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