#!/bin/sh #The cameras image folder. use '--list-files' to get the name of the image folder FOLDER='/store_00010001/' echo "fetching all files..." gphoto2 --auto-detect --get-all-files --folder $FOLDER echo "Autorotating images..." jhead -autorot *.JPG #exiftran -ai *.JPG echo echo "Deleting images from camera (Abort now if not wanted)" echo -n "Hit enter to continue " read foo gphoto2 --auto-detect --delete-all-files --recurse --folder $FOLDER