pi-builder
pi-builder copied to clipboard
Copy all images to external USB drive when attached
OR: save files to external USB drive if it exists. Either would be great!
I think maybe the way to do this is:
- have an environment variable with the path to save to, like
$FILE_SAVE_LOCATION
or something - have an event run when a new disk is mounted OR monitor disks (maybe with
ls /media/removable/
or wherever they'll show up?) once per second usingcron
- when a new disk is present, re-assign
$FILE_SAVE_LOCATION
to be the new removable media. - if yet another disk is inserted, re-assign again to the newest
- set installed software like RPi Cam interface (see #13) or
image-sequencer
to use the location in$FILE_SAVE_LOCATION