1 #!/usr/local/plan9/bin/rc
4 echo 'usage: mount addr mtpt' >[1=2]
9 if(9 grep -si ' 9p(2000)?$' /proc/filesystems){
11 exec u mount -t 9p -o trans'='unix,uname'='$USER $1 $2
12 exec u mount -t 9p -o trans'='tcp,uname'='$USER $1 $2
14 if(9 grep -si ' fuse$' /proc/filesystems)
16 echo 'don''t know how to mount (no 9p, no fuse)' >[1=2]
18 if(kldstat|9 grep -si ' fuse')
20 echo 'don''t know how to mount (no fuse)' >[1=2]
22 if(sysctl fuse.version >[2]/dev/null |9 grep -si 'fuse.version' ||
23 sysctl macfuse.version.number >[2]/dev/null |9 grep -si 'fuse.version' ||
24 sysctl osxfuse.version.number >[2]/dev/null |9 grep -si 'fuse.version' ||
25 test -d /System/Library/Extensions/fusefs.kext ||
26 test -d /Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext ||
27 test -d /Library/Filesystems/fusefs.fs/Support/fusefs.kext)
29 echo 'don''t know how to mount (no fuse)' >[1=2]
31 echo 'can''t mount on' `{uname} >[1=2]