+2007-02-26 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Fix detection of installed fuse in init script. Reported and
+ fix suggested by Davide Canova
+
2007-02-05 Miklos Szeredi <miklos@szeredi.hu>
* Fix 2.6.9 RHEL kernels, which have compatibility mutex.h, but
MOUNTPOINT=/sys/fs/fuse/connections
# Gracefully exit if the package has been removed.
-test -x `which fusermount` || exit 0
+which fusermount &>/dev/null || exit 0
error()
{
# loop over each mount option and skip all that should be ignored
IFS=","
for OPT in $@; do
- OPT=`echo $OPT | sed "s/^\(-o\|user\|nouser\|users\|auto\|noauto\|_netdev\)$/ignore/"`
- if [ "$OPT" == "ignore" ]; then continue; fi
+ OPT=`echo $OPT | sed "s/^\(-o\|user\|nouser\|users\|auto\|noauto\|_netdev\)$/IGNORE/"`
+ if [ "$OPT" == "IGNORE" ]; then continue; fi
OPTIONS="$OPTIONS$OPT,"
done
IFS=" "