#
# sourced with .
#
# Script to automatically add what's in the ltspfs_fstab on login.
#

if [ -f /var/run/ltspfs_fstab ]; then
    while read DEV DIR TYPE OPTIONS DUMP PASS; do
        ssh -S ${LDM_SOCKET} ${LDM_SERVER} "/usr/sbin/ltspfsmounter ${DIR} add"
    done < /var/run/ltspfs_fstab
fi
