--- scripts/umountavfs.orig 2015-02-07 16:14:17.372402564 +0600 +++ scripts/umountavfs 2015-02-07 16:15:29.270400346 +0600 @@ -14,11 +14,11 @@ 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 }