~ubuntu-branches/ubuntu/edgy/ltspfs/edgy

« back to all changes in this revision

Viewing changes to scripts/ltspfs_mount

  • Committer: Bazaar Package Importer
  • Author(s): Scott Balneaves
  • Date: 2006-09-18 13:01:06 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060918130106-ns6gmg2kl0oic3h6
Tags: 0.4.3-0ubuntu1
* Fixed variable check for static-devices in add_fstab_entry
* Bumped to 0.4.3
* UVF exception granted by mdz

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
[ -n "$1" ] || {
 
3
    echo "Usage: $0 <mount point>"
 
4
        exit 1
 
5
}
 
6
 
 
7
# ltspfs_mount, passed a directory name, used in /etc/fstab.
 
8
grep "$1" /etc/fstab | while read DEV MOUNTPOINT TYPE OPTIONS DUMP PASS; do
 
9
   if [ ! -d ${MOUNTPOINT} ]; then
 
10
           mkdir ${MOUNTPOINT}
 
11
   fi
 
12
   mount -t ${TYPE} -o ${OPTIONS} ${DEV} ${MOUNTPOINT}
 
13
done