Mac FUSE support (thanks to Jeff Sickel)

This commit is contained in:
rsc 2007-01-18 12:52:54 +00:00
parent e290e875f3
commit 9b3fcf01c5
5 changed files with 59 additions and 3 deletions

View file

@ -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