I have a USB device (POV camera) that collects a lot of data a fills up its storage regularly. The goal is to write a script that:
- Listens for the device to connect via USB
- Mounts it as a storage device
- Downloads data from the device
- Safely unmounts the device for removal (upon completion of the download)
I can add to the script later the option for blinking LEDs attached to certain pins on the GPIO to indicate status...
I've searched for "how to automatically download data from a usb device" on ubuntu and other linux sites, but with no results. Can anyone provide a starting point? I'm comfortable with writing code from documentation and examples.