mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
10 lines
216 B
Bash
Executable file
10 lines
216 B
Bash
Executable file
#!/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
|