Does anybody have suggestion for a program that monitors the insert of PC Cards (or USB devices), and runs user defined scripts based upon the device inserted?

For example, I have a laptop that I insert a Sierra Wireless card, a Wifi PC Card or a USB Wifi device. I would like to auto-configure the default routes based upon which device is present, and un-configure when that device is removed.

Currently, I use a cron job to parse the output of demsg, and take action based on whether the device is present or not.

It looks as though OpenBSD had a daemon called pcmciad that did just that.
( http://www.rocketaware.com/man/man8/pcmciad.8.htm )
Also, FreeBSD has a similar daemon called pccardd.

There was mention of a program in this post ( http://marc.theaimsgroup.com/?l=openbsd-misc&m=102250494514944&w=2 ), but the link to the code no longer works.

Thanks,
Tom
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Reply via email to