From xs-0.4 onwards, we use usbmount to trigger scripts when USB drives are plugged in.
This page will expand to more guidelines as to how to use this mechanism. :-)