I found an interesting utility. Mountpoint checks to see if a filesystem is mounted on a directory. Useful if you want a script to check if it should mount a filesystem.