Skip to content

Instantly share code, notes, and snippets.

@d-j-kendall
Created October 13, 2019 20:44
Show Gist options
  • Save d-j-kendall/cf9f84bb27c043eda5260dfb4005650e to your computer and use it in GitHub Desktop.
Save d-j-kendall/cf9f84bb27c043eda5260dfb4005650e to your computer and use it in GitHub Desktop.
file to be added to `/etc/profile.d/` which mounts google drive via application `google-drive-ocamlfuse` this will crash your xserver if you do not have the proper application installed
#!/bin/bash
if [ -d "/home/dkendall/GDRIVE" ];
then
if mount | grep GDRIVE > /dev/null;
then
echo "Do nothing" > /dev/null
else
google-drive-ocamlfuse ~/GDRIVE
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment