Skip to content

Instantly share code, notes, and snippets.

@Nepomuk
Last active August 29, 2015 14:05
Show Gist options
  • Save Nepomuk/b7a2cb580c79a2d50a45 to your computer and use it in GitHub Desktop.
Save Nepomuk/b7a2cb580c79a2d50a45 to your computer and use it in GitHub Desktop.
Mount a encfs/boxcryptor image with OSX and let it display as a local mount in finder.
#!/bin/bash
ENCFS="/usr/local/bin/encfs"
ENCDIR="$HOME/Dropbox/Boxcryptor.bcc"
DECDIR="/Volumes/Boxcryptor"
if [ ! -d "$DECDIR" ]; then
mkdir -p $DECDIR
fi
security find-generic-password -ga encfs 2>&1 >/dev/null | cut -d'"' -f2 | "$ENCFS" -S "$ENCDIR" "$DECDIR" -o local
@Nepomuk
Copy link
Author

Nepomuk commented Aug 19, 2014

This is based on the automount section of this tutorial: http://www.maketecheasier.com/install-encfs-mac/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment