~ubuntu-branches/ubuntu/lucid/ltspfs/lucid

« back to all changes in this revision

Viewing changes to scripts/ltspfs_entry

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Graber
  • Date: 2009-06-03 17:31:29 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20090603173129-drd1uiq91na7ryzy
Tags: 0.5.12-0ubuntu1
* New upstream version (0.5.12):
 * Remove ltspfs_fstab entry before unmounting device (LP: #378495)
 * Code simplification
 * Make sure delayed_mounter sets USER=root for local ltspfsmounting
 * Do not remove ltspfs mount on "already mounted" errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    DEVICENAME="$1"
84
84
    while read DEV MOUNTPOINT TYPE OPTIONS DUMP PASS; do
85
85
        if [ "${DEV}" = "/dev/${DEVICENAME}" ]; then
 
86
            # Remove the mount point in ltspfs_fstab first
 
87
            # to prevent triggering mount while umounting
 
88
            sed -i -e "\@ ${MOUNTPOINT} @d" ${FSTAB}
86
89
            umount -l ${MOUNTPOINT}
87
90
            rmdir ${MOUNTPOINT}
88
91
            call_ltspfsmounter remove ${MOUNTPOINT}
89
 
            sed -i -e "\@ ${MOUNTPOINT} @d" ${FSTAB}
90
92
            exit 0
91
93
        fi
92
94
    done < ${FSTAB}