Skip to content

Instantly share code, notes, and snippets.

@heiher
Created March 9, 2020 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heiher/0673b916216875eea45ca91ed96b245d to your computer and use it in GitHub Desktop.
Save heiher/0673b916216875eea45ca91ed96b245d to your computer and use it in GitHub Desktop.
eCryptfs mounting helper
#!/bin/bash
if [ "$#" -lt 2 ]; then
SRC=$1
DST=$1
else
SRC=$1
DST=$2
fi
OPTS="ecryptfs_enable_filename_crypto=y,no_sig_cache,ecryptfs_cipher=aes,ecryptfs_key_bytes=32"
exec mount -t ecryptfs -o ${OPTS} ${SRC} ${DST}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment