Skip to content

Instantly share code, notes, and snippets.

@dwalters-zz
Created June 12, 2011 18:13
Show Gist options
  • Save dwalters-zz/1021831 to your computer and use it in GitHub Desktop.
Save dwalters-zz/1021831 to your computer and use it in GitHub Desktop.
launchd plist for starting encfs at login
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>encfs</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/encfs</string>
<string>-f</string>
<string>--extpass=/Users/dwalters/bin/extract-password encfs</string>
<string>/Users/dwalters/Dropbox/.private</string>
<string>/Users/dwalters/Private</string>
<string>--</string>
<string>-o</string>
<string>volname=Private</string>
</array>
</dict>
</plist>
#!/bin/sh
security find-generic-password -gs $1 2>&1 >/dev/null \
| perl -ne '/^password: "(.*)"$/ && print $1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment