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

T.C. Hollingsworth tchollingsworth at gmail.com
Mon Jul 15 03:01:29 UTC 2013


On Jul 14, 2013 1:45 PM, "Anthony" <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.

-T.C.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20130714/f1aa7a39/attachment.html>


More information about the users mailing list