[Assorted-commits] SF.net SVN: assorted:[1831] shell-tools/trunk/src/bash-commons/common.bash
Brought to you by:
yangzhang
From: <yan...@us...> - 2012-07-13 21:55:45
|
Revision: 1831 http://assorted.svn.sourceforge.net/assorted/?rev=1831&view=rev Author: yangzhang Date: 2012-07-13 21:55:38 +0000 (Fri, 13 Jul 2012) Log Message: ----------- Add mount-ecryptfs Modified Paths: -------------- shell-tools/trunk/src/bash-commons/common.bash Modified: shell-tools/trunk/src/bash-commons/common.bash =================================================================== --- shell-tools/trunk/src/bash-commons/common.bash 2012-07-10 00:52:16 UTC (rev 1830) +++ shell-tools/trunk/src/bash-commons/common.bash 2012-07-13 21:55:38 UTC (rev 1831) @@ -786,6 +786,12 @@ eval "$(keychain --eval --timeout $minutes id_rsa)" } +mount-ecryptfs() { + local dir="$1" + sudo mount -t ecryptfs "$dir"{,} -o \ + ecryptfs_cipher=aes,ecryptfs_key_bytes=32,ecryptfs_passthrough=n,ecryptfs_enable_filename_crypto=n +} + wait-idle() { while (( $( top -b -n 2 | grep ^Cpu | tail -1 | sed 's/.* \([[:digit:]]*\)\.[[:digit:]]*%id.*/\1/g' ) < 50 )) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |