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?
Thanks, Anthony
On Jul 14, 2013 1:45 PM, "Anthony" lists@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.
On 07/14/2013 10:01 PM, T.C. Hollingsworth wrote:
On Jul 14, 2013 1:45 PM, "Anthony" <lists@cajuntechie.org mailto:lists@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!