How do I run a script automatically when a specific drive mounts? (SOLVED)

Anthony lists at cajuntechie.org
Mon Jul 15 03:15:46 UTC 2013


On 07/14/2013 10:01 PM, T.C. Hollingsworth wrote:
> On Jul 14, 2013 1:45 PM, "Anthony" <lists at cajuntechie.org
> <mailto:lists at cajuntechie.org>> wrote:
>>  I want to execute a script every time a specific drive is mounted on
>> the system. I have a thumb drive that has a name I've given it. When
>> it's mounted, I want to copy the contents of my .gnupg directory to it
>> so I can always have a current backup of my keyring.
>>
>> From the research I've done, it looks like UDEV rules are the way to go
>> but, IIRC, Fedora doesn't use UDEV anymore. How can I accomplish this now?
> 
> I'm afraid you recall incorrectly. ;-)
> 
> Pretty much every distro uses udev nowadays and it's not going away
> anytime soon--it's part of systemd now.
> 
> And yes, a udev rule is the way to go.

Many thanks!


-- 
Anthony Papillion
Phone:   1.918.533.9699
SIP:     sip:cajuntechie at iptel.org
iNum:    +883510008360912
XMPP:    cypherpunk38 at jit.si

www.cajuntechie.org


More information about the users mailing list