aboutsummaryrefslogtreecommitdiff
path: root/bin/unmount
blob: 38d9486eae4b26b64c49fb25eb15da84af01aab4 (plain)
1
2
3
4
5
6
7
8
9
10
#!/Users/ethan/plan9port/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' && ! ~ `{uname} Darwin)
	exec fusermount -u -z $1
exec u umount $1