aboutsummaryrefslogtreecommitdiff
path: root/bin/unmount
diff options
context:
space:
mode:
Diffstat (limited to 'bin/unmount')
-rwxr-xr-xbin/unmount10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/unmount b/bin/unmount
new file mode 100755
index 00000000..3d2760f8
--- /dev/null
+++ b/bin/unmount
@@ -0,0 +1,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