How to hook a script to an usb mount event?

hi all,

I’m working with my BBB with Angstrom distribution.
I need to execute a bash script when I insert an USB key storage in BBB USB socket.
Angstrom kernel autodetect and automount the key correctly, but i need to hook on this event to execute my script. How can do it?
How can force to mount mount my uSB key always in the same mount opoint (example /media/sda) ???

Thanks for any suggestions
Dario

Try researching udev rules, that may help with some of what you are looking for.
http://www.reactivated.net/writing_udev_rules.html