diff options
author | rsc <devnull@localhost> | 2006-07-23 02:46:53 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-07-23 02:46:53 +0000 |
commit | 5801105701ffe5e9695644bfd1a2d79f48977100 (patch) | |
tree | 864174b5b926fa0fa41b82d1f01f39563ad67ca0 /bin/unmount | |
parent | 24c67c31898ff04e62eaa02514cd7c53de5d8f87 (diff) | |
download | plan9port-5801105701ffe5e9695644bfd1a2d79f48977100.tar.gz plan9port-5801105701ffe5e9695644bfd1a2d79f48977100.tar.bz2 plan9port-5801105701ffe5e9695644bfd1a2d79f48977100.zip |
mount and unmount scripts
Diffstat (limited to 'bin/unmount')
-rwxr-xr-x | bin/unmount | 10 |
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 |