# HG changeset patch # User Pascal Bellard # Date 1402955509 -7200 # Node ID b55261bbc2a9db7416b898d6cbf91d596503e11b # Parent c176489f467bbbd3485dbe2979398e6846f4fc84 sshfs-fuse/rsshfs: lazy umount support diff -r c176489f467b -r b55261bbc2a9 sshfs-fuse/stuff/rsshfs --- a/sshfs-fuse/stuff/rsshfs Mon Jun 16 22:45:42 2014 +0200 +++ b/sshfs-fuse/stuff/rsshfs Mon Jun 16 23:51:49 2014 +0200 @@ -1,25 +1,25 @@ #!/bin/sh -# from https://github.com/rom1v/rsshfs/blob/master/rsshfs +# from https://github.com/rom1v/rsshfs rhost="${2%%:*}" rpath="${2#*:}" lpath="$1" +shift 2 -case "$1" in --u) ssh "$rhost" fusermount -u "$rpath" +case "$lpath" in +-u) ssh "$rhost" fusermount -u $@ "$rpath" ;; ''|-*) cat < $fifo rm -f $fifo esac