mount and unmount scripts
This commit is contained in:
parent
24c67c3189
commit
5801105701
2 changed files with 34 additions and 0 deletions
10
bin/unmount
Executable file
10
bin/unmount
Executable file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue