From 1594a699e5605ad7f1ed02803de937229e51322a Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Tue, 11 Jun 2024 10:31:13 -0400 Subject: [PATCH] Fix path to media on SD card for Drone --- drone-ingest-mac.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) mode change 100644 => 100755 drone-ingest-mac.sh diff --git a/drone-ingest-mac.sh b/drone-ingest-mac.sh old mode 100644 new mode 100755 index 4eee5d2..8aea0ee --- a/drone-ingest-mac.sh +++ b/drone-ingest-mac.sh @@ -21,7 +21,7 @@ CURRENT_DATE=$(date +%F) # Paths # IMPORTANT: Paths should NEVER have trailing slashes, and ALWAYS have leading slashes # Drone's path to images -SD_SRC_PATH="/DCIM/100MSDCF" +SD_SRC_PATH="/DCIM/100MEDIA" # Where to ingest to on the Mac MAC_INGEST_PATH="$HOME/Pictures/Drone Ingest/$CURRENT_DATE" # Where to ingest to on the NAS @@ -109,9 +109,9 @@ create_folders_nas() { fi } -# Cleanup non-RAW images on camera. +# Cleanup non-RAW images on drone. clean_sd() { - echo "Traversing to Camera..." + echo "Traversing to Drone..." cd "$SD_MOUNT_POINT/$SD_SRC_PATH" echo "Removing JPG files..." rm *.JPG @@ -119,7 +119,7 @@ clean_sd() { cd - } -# Camera->Mac Ingest +# Drone->Mac Ingest ingest_mac() { # Check if the SD card is mounted if mount | grep -q $SD_MOUNT_POINT; then @@ -214,13 +214,13 @@ ingest_nas() { # break lines accordingly in the shell while true; do echo "" - echo "[ Camera Ingest Script ]" + echo "[ Drone Ingest Script ]" echo "" echo "Please enter an option from below:" echo "" - echo "[1] Camera->Mac Ingest" + echo "[1] Drone->Mac Ingest" echo "[2] Mac->NAS Ingest" - echo "[X] Cleanup non-RAW images on camera." + echo "[X] Cleanup non-RAW images on drone." echo "" echo "[0] Exit" @@ -230,7 +230,7 @@ while true; do # Execute the correct commands based on input. case "$opt" in 1) - # Camera->Mac Ingest + # Drone->Mac Ingest clear ingest_mac ;; @@ -240,7 +240,7 @@ while true; do ingest_nas ;; 3) - # Cleanup non-RAW images on camera. + # Cleanup non-RAW images on drone. clear echo "Temporarily disabled!" # clean_sd