On Fri, Jun 28, 2002 at 05:29:17PM +0200, Eugen Leitl wrote:
I've bought me a little (32 MBytes) hotpluggable USB flash stick (a TrekStor). It mounts fine, but what I'd like to do is to automount it, and fire up a program (I intend to put my keyring on it) if hotplugged.
You need to enable hot-pluggable devices in your kernel configuration (along with USB storage stuff as well of course). Then, when you insert the flash, kernel will automagically load all necessary drivers and call /sbin/hotplug (path set in /proc), which can be a shell script.
From here you can do everything you want. Actually, those flash devices are quite cool, I'm using them to distribute configuration, keys and software upgrades on my security gateways etc., so feel free to ask if you have any problems.
-- Pawe3 Krawczyk * http://echelon.pl/kravietz/ Krakow, Poland * http://ipsec.pl/