Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2008 16:20:47 -0600
From:      Brooks Davis <brooks@freebsd.org>
To:        Yousif Hassan <yousif@alumni.jmu.edu>
Cc:        freebsd-net@freebsd.org
Subject:   Re: network interface monitoring?
Message-ID:  <20080123222047.GA14264@lor.one-eyed-alien.net>
In-Reply-To: <1201125022.2106.67.camel@localhost>
References:  <1201125022.2106.67.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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