Check for mounted volume via terminal?
I want to write a simple bash script that will unmount a volume
if it's already mounted. How do i check to see if the volume is mounted?
if [/Volumes/Backup is mounted ]
umount /Volumes/Backup
fi
if [/Volumes/Backup is mounted ]
umount /Volumes/Backup
fi
PowerMac G5 (10.5.8) / MBP 15" / MBP 17" / Mini, Mac OS X (10.6.2)