Created
November 20, 2020 09:06
-
-
Save felixbuenemann/824fe143e75d7f9abb751b63468b5e36 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Load Google Drive File Stream and Kernel Extension | |
# on macOS Big Sur 11.1 Beta | |
set -e | |
bundleid=com.google.drivefs | |
app=`mdfind "kMDItemCFBundleIdentifier == '$bundleid'"` | |
if [ "$app" = "" ]; then | |
echo "Google Drive File Stream.app not found" >/dev/stderr | |
exit 1 | |
fi | |
killall "Google Drive File Stream" 2>/dev/null ||: | |
sudo kextload "$app/Contents/MacOS/dfsfuse.kext" | |
open -b com.google.drivefs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment