#9
|
|||
|
|||
This will/should work for multiple attached network AFP mounts. I'm sure something similar would work for any other mount type.
Code:
#!/usr/bin/env bash sleep 45 if [[ `mount | awk '/^afp_/'` != "" ]]; then num_mounts=`mount | grep -c ^afp` for (( i = 0; i < $num_mounts; i++ )); do afp=`mount | grep ^afp_ | awk {'print$3'} | sed -n '1p;1q'` umount -f $afp done fi Last edited by afragen; 05-11-2007 at 02:19 AM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Smart Update copying files that haven't been changed? | salparadi | General | 3 | 11-05-2006 11:40 AM |
Copying newer files across volumes. | chip | General | 1 | 08-09-2006 08:07 PM |
Long Hang While Copying | BackerUpper | General | 4 | 06-12-2006 08:26 AM |
SuperDuper! Erasing Audio Files? | Emerson | General | 3 | 06-22-2005 01:41 PM |
Smart update copying all files each time | fabius | General | 15 | 05-29-2005 09:29 PM |