~ubuntu-branches/ubuntu/karmic/ltspfs/karmic

« back to all changes in this revision

Viewing changes to scripts/remove_fstab_entry

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2007-06-20 15:34:14 UTC
  • Revision ID: james.westby@ubuntu.com-20070620153414-6y19ybfufhtw09s8
Tags: 0.4.3-0ubuntu7
quick fix to ldm socket pathname 

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
grep ${1} /etc/fstab | while read DEV MOUNTPOINT TYPE OPTIONS DUMP PASS; do
6
6
    umount -l ${DEV} 2>&1 >/dev/null
7
7
    rmdir ${MOUNTPOINT}
8
 
    if [ -S /tmp/.ltspfs-socket ]; then
9
 
            /usr/bin/ssh -S /tmp/.ltspfs-socket server \
 
8
    if [ -S /var/run/ldm_socket ]; then
 
9
            /usr/bin/ssh -S /var/run/ldm_socket server \
10
10
                     "/usr/sbin/ltspfsmounter $MOUNTPOINT remove"
11
11
    else
12
12
        # use \| as separator for sed because path uses /