This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Resilient iPhone photo copy script | |
| # Uses a watchdog to kill ifuse the instant the phone disconnects, | |
| # preventing D-state hangs on the FUSE mount. | |
| MOUNT_DIR="$HOME/iPhone" | |
| DEST_DIR="$HOME/iPhone-Backup" | |
| DCIM_PATH="$MOUNT_DIR/DCIM" | |
| mkdir -p "$MOUNT_DIR" "$DEST_DIR" |