mount: explicit u on test -S and mount to get unix versions (Chris King)
This commit is contained in:
parent
7a400ee957
commit
3dc14df0f7
1 changed files with 3 additions and 3 deletions
|
|
@ -7,9 +7,9 @@ if(! ~ $#* 2){
|
||||||
switch(`{uname}){
|
switch(`{uname}){
|
||||||
case Linux
|
case Linux
|
||||||
if(lsmod|9 grep -si '^9p(2000)? '){
|
if(lsmod|9 grep -si '^9p(2000)? '){
|
||||||
if(test -S $1)
|
if(u test -S $1)
|
||||||
exec mount -t 9p -o proto'='unix,name'='$USER $1 $2
|
exec u mount -t 9p -o proto'='unix,name'='$USER $1 $2
|
||||||
exec mount -t 9p -o proto'='tcp,name'='$USER $1 $2
|
exec u mount -t 9p -o proto'='tcp,name'='$USER $1 $2
|
||||||
}
|
}
|
||||||
if(lsmod|9 grep -si '^fuse ')
|
if(lsmod|9 grep -si '^fuse ')
|
||||||
exec 9pfuse $1 $2
|
exec 9pfuse $1 $2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue