diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-10-28 07:59:22 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2006-10-28 07:59:22 +0000 |
commit | 10d03ed9c381436d06252ab440bc2e910e7e755b (patch) | |
tree | 13fe3b8295e89b100b825bfd533cbc2e332e439d /util/mount.fuse | |
parent | e414a2ff2cc5ba3bf618a3674a0a0a8408ad0470 (diff) | |
download | libfuse-10d03ed9c381436d06252ab440bc2e910e7e755b.tar.gz |
build/install fixes + add bug reporting instructions to README
Diffstat (limited to 'util/mount.fuse')
-rw-r--r-- | util/mount.fuse | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/util/mount.fuse b/util/mount.fuse index 1e1a2b4..0b111db 100644 --- a/util/mount.fuse +++ b/util/mount.fuse @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # FUSE mount helper # Petr Klima <qaxi@seznam.cz> @@ -28,15 +28,14 @@ function die { [ "$#" -ge 2 ] || die "${USAGE}" -FSTYPE=${1%%\#*} # for now i have to be same as FUSE mount binary - # should be configurable +# for now i have to be same as FUSE mount binary +# should be configurable +eval `echo "$1" | sed -n 's,\(^[^#][^#]*\)\(#\(.*\)\)*,FSTYPE="\1" MOUNTPATH="\3",p'` export PATH FSBIN=`which ${FSTYPE} 2>/dev/null` \ || die "Can not find FUSE mount binary for FS ${FSTYPE}" 1 -MOUNTPATH=${1#*#} - # was there an # in $1 [ "$1" = "$MOUNTPATH" ] && MOUNTPATH="" @@ -46,8 +45,8 @@ MOUNTPOINT="$2" shift shift -ignore_opts="(user|nouser|users|auto|noauto|_netdev)" +ignore_opts='\(user\|nouser\|users\|auto\|noauto\|_netdev\)' -OPTIONS=`echo $@ | sed -r "s/(,${ignore_opts}|${ignore_opts},)//g"` +OPTIONS=`echo $@ | sed "s/,${ignore_opts}\|${ignore_opts},//g"` ${FSTYPE} ${MOUNTPATH} ${MOUNTPOINT} ${OPTIONS} |