diff options
author | Connor Taffe <cpaynetaffe@gmail.com> | 2021-01-31 19:33:14 -0600 |
---|---|---|
committer | Dan Cross <crossd@gmail.com> | 2021-01-31 20:52:49 -0500 |
commit | 90971376a5e8620fc62579aa1b3be26245ec8c06 (patch) | |
tree | 4f5f63ad210207c0e8774167e6da6be1bdea7592 /bin | |
parent | f62d4c4143c9a21e488fca658590e1546700586f (diff) | |
download | plan9port-90971376a5e8620fc62579aa1b3be26245ec8c06.tar.gz plan9port-90971376a5e8620fc62579aa1b3be26245ec8c06.tar.bz2 plan9port-90971376a5e8620fc62579aa1b3be26245ec8c06.zip |
mount: find kext with MacFUSE >=4 and macOS >=11
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mount | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |