On Wed, Jan 23, 2008 at 04:50:22PM -0500, Yousif Hassan wrote: > Net-gurus: > > 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). > > 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
pgpLNkRuzWVxC.pgp
Description: PGP signature