#!/bin/sh
[ -n "$1" ] || {
    echo "Usage: $0 <mount point>"
	exit 1
}

# ltspfs_mount, passed a directory name, used in /var/run/ltspfs_fstab.
grep "$1" /var/run/ltspfs_fstab | while read DEV MOUNTPOINT TYPE OPTIONS DUMP PASS; do
   [ -d ${MOUNTPOINT} ] || mkdir ${MOUNTPOINT}
   mount -t ${TYPE} -o ${OPTIONS} ${DEV} ${MOUNTPOINT}
done
