NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Script hardware event hooks
I found the answer:
http://pikt.org/pikt/samples/dmesg_scan_alarms_macros.cfg.html
J Cornell
On Sep 3, 2009, at 8:29 PM, John Cornell <jcornell%chapterzero.com@localhost>
wrote:
> Hi,
>
> I'm trying to trigger a script when a USB drive (with a known name/
> banner) is mounted. I'm pretty sure what I'm trying to do has
> something to do with:
>
> http://netbsd.gw.com/cgi-bin/man-cgi?dmesg+8+NetBSD-current
> or
> http://netbsd.gw.com/cgi-bin/man-cgi?syslogd+8+NetBSD-current
>
> I could run a cron job every minute that checks the contents of the
> dmesg buffer to see if the drive has been mounted, but I need
> instant execution. Any general thoughts or advice on how you might
> approach this, including maybe kernel options(?) would be greatly
> appreciated.
>
> J Cornell
Home |
Main Index |
Thread Index |
Old Index