Saturday, October 6, 2007

Automagic NTFS-3g mounting?

I dunno if this would work... I need a computer to test it on...

fstype=$(get_fstype "${devname}")
if is_supported_fs ${fstype}; then
if "${fstype}" = "ntfs"
fstype="ntfs-3g"
fi
mount -t ${fstype} -o ro "${devname}" $mountpoint || continue
if is_casper_path $mountpoint; then
echo $mountpoint
return 0
else
umount $mountpoint
fi
fi

No comments:

Post a Comment