Originally Posted by scinerd
ssh <remote host> "test -f /mount/point/somefile" || exit
Sorry, but it does not work. Usually it is ok, but /mount/point/somefile may exist anyway (either device is mounted or not).
Much better would be to check if it is really mounted:
mount | grep <mount point pattern>