Plan 9 from User Space's /usr/local/plan9/bin/unmount

#!/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' && ! ~ `{uname} Darwin)
	exec fusermount -u -z $1
exec u umount $1

Space Glenda

Copyright © 2005 Lucent Technologies, Russ Cox, MIT.
See license for details.