Skip to content

Instantly share code, notes, and snippets.

@felixbuenemann
Created November 20, 2020 09:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felixbuenemann/824fe143e75d7f9abb751b63468b5e36 to your computer and use it in GitHub Desktop.
Save felixbuenemann/824fe143e75d7f9abb751b63468b5e36 to your computer and use it in GitHub Desktop.
#!/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