Created
March 9, 2020 15:18
-
-
Save heiher/0673b916216875eea45ca91ed96b245d to your computer and use it in GitHub Desktop.
eCryptfs mounting helper
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 | |
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