Auto USB copy, how does it work? [solved]
-
So I've been trying to figure out how the RetroPie USB-to-SD autocopy works. The functionality that takes any roms in retropie/roms from the USB stick and copies them to the appropriate folders on the SD card. I would have guessed it to be executed by some udev rule, but I can't for the life of me find any that seems to initiate any such thing.
Does it run a script? What initiates this? Where are the relevant files located?
Any help on the technical aspect of this would be appreciated. Thanks!
-
@muldjord Hello there ! It's not using
udev
, but a special service - usbmount - which drops some files to be executed in /etc/usbmount/mount.d when a new mount-able device appears. -
Thanks @mitu, that'll get me started :D
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.