Last active
August 29, 2015 14:05
-
-
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.
This file contains 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/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is based on the automount section of this tutorial: http://www.maketecheasier.com/install-encfs-mac/