aboutsummaryrefslogtreecommitdiff
path: root/bin/mount
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2021-02-18 20:21:24 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2021-02-18 20:21:24 +0100
commit181d56ee64da53279bb6ecf49c24ab54cfb7193f (patch)
treefc6c8736bb97790a257c5514998c583ffce7c41c /bin/mount
parent94c521bf102a74aec7e1a5c3a9ef5eaa968d4e14 (diff)
parent90971376a5e8620fc62579aa1b3be26245ec8c06 (diff)
downloadplan9port-master.tar.gz
plan9port-master.tar.bz2
plan9port-master.zip
Merge remote-tracking branch 'upstream/master'HEADmaster
Diffstat (limited to 'bin/mount')
-rwxr-xr-xbin/mount3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/mount b/bin/mount
index 0fbb1bfd..e29cc201 100755
--- a/bin/mount
+++ b/bin/mount
@@ -20,11 +20,14 @@ case FreeBSD
echo 'don''t know how to mount (no fuse)' >[1=2]
case Darwin
version=`{sw_vers -productVersion|cut -d. -f1,2}
+ major_version = `{echo $version|cut -d. -f1}
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/osxfuse.fs/Contents/Extensions/$version/osxfuse.kext ||
+ test -d /Library/Filesystems/macfuse.fs/Contents/Extensions/$version/macfuse.kext ||
+ test -d /Library/Filesystems/macfuse.fs/Contents/Extensions/$major_version/macfuse.kext ||
test -d /Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext ||
test -d /opt/local/Library/Filesystems/osxfuse.fs ||
test -d /Library/Filesystems/fusefs.fs/Support/fusefs.kext)