From owner-freebsd-net@FreeBSD.ORG Wed Jan 23 22:20:56 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E84A716A418 for ; Wed, 23 Jan 2008 22:20:56 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 86E6713C458 for ; Wed, 23 Jan 2008 22:20:56 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.1/8.13.8) with ESMTP id m0NMKlR5014403; Wed, 23 Jan 2008 16:20:47 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.1/8.13.8/Submit) id m0NMKlg0014402; Wed, 23 Jan 2008 16:20:47 -0600 (CST) (envelope-from brooks) Date: Wed, 23 Jan 2008 16:20:47 -0600 From: Brooks Davis To: Yousif Hassan Message-ID: <20080123222047.GA14264@lor.one-eyed-alien.net> References: <1201125022.2106.67.camel@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline In-Reply-To: <1201125022.2106.67.camel@localhost> User-Agent: Mutt/1.5.16 (2007-06-09) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Wed, 23 Jan 2008 16:20:47 -0600 (CST) Cc: freebsd-net@freebsd.org Subject: Re: network interface monitoring? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2008 22:20:57 -0000 --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 23, 2008 at 04:50:22PM -0500, Yousif Hassan wrote: > Net-gurus: >=20 > I hope this is the right list to write to regarding this question (feel > free to redirect me to ports@ if that sounds more appropriate). >=20 > I'm looking for a facility to automatically detect network interface > carrier state changes (a network cable gets plugged/unplugged; a > laptop's wireless button gets turned on/off; etc.) and then to run a > user script on it. The use case, fairly obvious I guess, is to execute > ifconfig and/or DHCP commands upon carrier detection; this will make my > laptop that much more useful. ;) devd already does a lot of this and is used to control dhclient execution. ifstated from openbsd is also in ports. -- Brooks --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFHl72+XY6L6fI4GtQRAiB8AJ97wzGVB53w+3FkxcmazaGUuDZCAgCgoHfV Ygn4LrmrVGeQ5g5MCr1VjT4= =u+8f -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi--