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:

J Cornell

On Sep 3, 2009, at 8:29 PM, John Cornell <>  

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