From 5801105701ffe5e9695644bfd1a2d79f48977100 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 23 Jul 2006 02:46:53 +0000 Subject: mount and unmount scripts --- bin/unmount | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/unmount (limited to 'bin/unmount') 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 -- cgit v1.2.3