mount filesystem and run a program when hotplugged

Bill Stewart bill.stewart at pobox.com
Sat Jul 6 14:49:45 PDT 2002


At 05:29 PM 06/28/2002 +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.
>
>The system I'm testing this on is RH 7.3.
>
>I've been using mount -t vfat /dev/sda /mnt/usbhd to mount it manually and
>put diverse entries into /etc/fstab, to no avail. Any suggestions?

I don't know how to do that, though it certainly sounds like an
invitation for viruses to migrate around on USB keyring sticks.

Is there CDROM autorun code that runs on Linux that could be adapted?





More information about the cypherpunks-legacy mailing list