freebsd-ports/sysutils/avfs/files/patch-scripts_umountavfs
Thomas Zander 51510ae831 Update to upstream version 1.0.4; pet portlint
PR:		213275
Submitted by:	mp39590@gmail.com (maintainer)
2016-10-16 07:44:23 +00:00

16 lines
420 B
Text

--- scripts/umountavfs.orig 2016-09-16 18:43:19 UTC
+++ scripts/umountavfs
@@ -14,11 +14,11 @@ else
MntDir="${HOME}/.avfs"
fi
-grep -qE "${MntDir}.*avfsd" /proc/mounts && {
+mount -p | grep -qE "${MntDir}.*fusefs" && {
echo unMounting AVFS on $MntDir...
if type -p fusermount > /dev/null 2>&1 ; then
fusermount -u -z "$MntDir"
else
- umount -l "$MntDir"
+ umount "$MntDir"
fi
}