aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2012-10-20 13:28:29 -0400
committerRuss Cox <rsc@swtch.com>2012-10-20 13:28:29 -0400
commit83d065a6b30f0e89af3d04e26568fc93b98e6604 (patch)
treef7dead07a62c88443936b50f4c1fb57ce175aa84 /bin
parentc3feb5c5c1ef2ddc014f77221a7ad10f140f7bfa (diff)
downloadplan9port-83d065a6b30f0e89af3d04e26568fc93b98e6604.tar.gz
plan9port-83d065a6b30f0e89af3d04e26568fc93b98e6604.tar.bz2
plan9port-83d065a6b30f0e89af3d04e26568fc93b98e6604.zip
mount: fix for osxfuse
R=rsc http://codereview.appspot.com/6737052
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mount6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/mount b/bin/mount
index be5170f0..79b974f7 100755
--- a/bin/mount
+++ b/bin/mount
@@ -19,9 +19,11 @@ case FreeBSD
exec 9pfuse $1 $2
echo 'don''t know how to mount (no fuse)' >[1=2]
case Darwin
- if(sysctl fuse.version |9 grep -si 'fuse.version' ||
- sysctl macfuse.version.number |9 grep -si 'fuse.version' ||
+ if(sysctl fuse.version >[2]/dev/null |9 grep -si 'fuse.version' ||
+ sysctl macfuse.version.number >[2]/dev/null |9 grep -si 'fuse.version' ||
+ sysctl osxfuse.version.number >[2]/dev/null |9 grep -si 'fuse.version' ||
test -d /System/Library/Extensions/fusefs.kext ||
+ test -d /Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext ||
test -d /Library/Filesystems/fusefs.fs/Support/fusefs.kext)
exec 9pfuse $1 $2
echo 'don''t know how to mount (no fuse)' >[1=2]