5
grep ${1} /etc/fstab | while read DEV MOUNTPOINT TYPE OPTIONS DUMP PASS; do
6
umount -l ${DEV} 2>&1 >/dev/null
8
if [ -S /tmp/.ltspfs-socket ]; then
9
/usr/bin/ssh -S /tmp/.ltspfs-socket server \
10
"/usr/sbin/ltspfsmounter $MOUNTPOINT remove"
12
# use \| as separator for sed because path uses /
13
sed -i -e "\|${MOUNTPOINT}|d" /var/run/.delayed-mount
14
# Check and see if the file's now empty. If it is, remove it.
15
if [ ! -s /var/run/.delayed-mount ]; then
16
rm /var/run/.delayed-mount
21
sed -e "/^\/dev\/$1 /d" /etc/fstab >/tmp/fstab