commit | 9b3fcf01c5d22d7be320a0e194cc54579f71c409 | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Thu Jan 18 12:52:54 2007 +0000 |
committer | rsc <devnull@localhost> | Thu Jan 18 12:52:54 2007 +0000 |
tree | 62c73a298ebd2f52872ffb72ef6cec4a6b483165 | |
parent | e290e875f350dbbc2288ec988d939a57cc8f9bf2 [diff] [blame] |
Mac FUSE support (thanks to Jeff Sickel)
diff --git a/bin/unmount b/bin/unmount index 3d2760f..6323e84 100755 --- a/bin/unmount +++ b/bin/unmount
@@ -1,10 +1,10 @@ -#!/usr/local/plan9/bin/rc +l#!/usr/local/plan9/bin/rc if(! ~ $#* 1){ echo 'usage: unmount mtpt' >[1=2] exit usage } f=`{u mount | grep $1} -if(echo $f | 9 grep -s 'type fuse') +if(echo $f | 9 grep -s 'type fuse' && ! ~ `{uname} Darwin) exec fusermount -u -z $1 exec u umount $1