mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
mount: use /proc/filesystems to check for fuse, 9p (uriel)
This commit is contained in:
parent
fa3c8da1c0
commit
5a0f923557
1 changed files with 2 additions and 2 deletions
|
@ -6,12 +6,12 @@ if(! ~ $#* 2){
|
||||||
}
|
}
|
||||||
switch(`{uname}){
|
switch(`{uname}){
|
||||||
case Linux
|
case Linux
|
||||||
if(lsmod|9 grep -si '^9p(2000)? '){
|
if(9 grep -si ' 9p(2000)?$' /proc/filesystems){
|
||||||
if(u test -S $1)
|
if(u test -S $1)
|
||||||
exec u mount -t 9p -o proto'='unix,name'='$USER $1 $2
|
exec u mount -t 9p -o proto'='unix,name'='$USER $1 $2
|
||||||
exec u 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(9 grep -si ' fuse$' /proc/filesystems)
|
||||||
exec 9pfuse $1 $2
|
exec 9pfuse $1 $2
|
||||||
echo 'don''t know how to mount (no 9p, no fuse)' >[1=2]
|
echo 'don''t know how to mount (no 9p, no fuse)' >[1=2]
|
||||||
case FreeBSD
|
case FreeBSD
|
||||||
|
|
Loading…
Reference in a new issue