blob: 46976f162a1e855ae681d665a2b55f18d0e62518 [file] [log] [blame]
rsc357cecc2007-01-18 13:02:52 +00001#!/usr/local/plan9/bin/rc
rsc58011052006-07-23 02:46:53 +00002
3if(! ~ $#* 1){
4 echo 'usage: unmount mtpt' >[1=2]
5 exit usage
6}
7f=`{u mount | grep $1}
rsc9b3fcf02007-01-18 12:52:54 +00008if(echo $f | 9 grep -s 'type fuse' && ! ~ `{uname} Darwin)
rsc58011052006-07-23 02:46:53 +00009 exec fusermount -u -z $1
10exec u umount $1