View Single Post
  #6  
Old 05-10-2007, 06:40 PM
afragen afragen is offline
Registered User
 
Join Date: May 2007
Location: Southern California
Posts: 13
Send a message via AIM to afragen
This script will do exactly what you want. I think.

Code:
#!/usr/bin/env bash

sleep 45

if [[ `mount | awk '/^afp_/'` != "" ]]; then
  # http://www.macosxhints.com/article.p...51107175256782
  mount | awk '/^afp_/ { system("umount -f " $3) }'
  echo $now "afp disk unmounted"
fi
Save it and set it to executable. You'll then have to call it from within SD's Advanced settings to run the shell script after copy completes.

Dave, if you want to include this script with SD feel free.

Andy
Reply With Quote