Ok here is what I am trying to accomplish,
I want to configure mutliple systems to have a script start when ever any usb stick is mounted and then if a specific folder is on the usb stick copy its contents to a folder on the system.
I have done research and found ways to run a script when a particular usb is mounted, but not any. secondly because I want the script to act on the newly mounted usb stick automatically, i would need its mount point, or path to root be passed to the script or some other workaround.
I actually already have a script made up to look for the dir, and then copy the directorys i want all done up but I dont know how to use it on any usb that is mounted
essentially the practical reason for this is that I want to be able to insert anystick into mutiple systems and automatically copy the files onto each system. I have 2 ubuntu installs and 2 others that are based on libreelec for raspberry pi so not many options to install extra packages, mostly basic systemd and bash scripting I hope
I want a cross linux solution as this will be used with both ubuntu and libreelec. I would prefer to use system d but udev may end up being a better solution.