summaryrefslogtreecommitdiff
path: root/filesystems/avfs/files/patch-scripts_umountavfs
blob: e93c9c659029c144c42c4a29469f141b8ce2c0f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- 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
 }