aboutsummaryrefslogtreecommitdiff
path: root/bin/unmount
blob: 3d2760f85379962478f4aa3dad487c59c0a0b781 (plain)
1
2
3
4
5
6
7
8
9
10
#!/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')
	exec fusermount -u -z $1
exec u umount $1