Sorry, so if ~/.ecryptfs/wrapped-passphrase exists, but Private.mnt
does not, the assumption is that you have an Encrypted-Private.
If ~/.ecryptfs/wrapped-passphrase exists, and ~/.ecryptfs/Private.mnt
exists, then Private.mnt is consulted for the mount point for the
eCryptfs mount.
In most cases, this is either $HOME or $HOME/Private. However, some
users change this to other various directories. It really doesn't
matter to mount.ecryptfs_private, as long as the user OWNS the
directory specified in the file.
To be very specific, something like this, Martin...
if [ -e ~/.ecryptfs/wrapped-passphrase ]; then
[ -e ~/.ecryptfs/Private.mnt ] && echo $(cat
~/.ecryptfs/Private.mnt) "is encrypted" || echo "$HOME/Private is
encrypted"
else
echo "No automounted eCryptfs here. Move along."
fi
Sorry, so if ~/.ecryptfs/ wrapped- passphrase exists, but Private.mnt
does not, the assumption is that you have an Encrypted-Private.
If ~/.ecryptfs/ wrapped- passphrase exists, and ~/.ecryptfs/ Private. mnt
exists, then Private.mnt is consulted for the mount point for the
eCryptfs mount.
In most cases, this is either $HOME or $HOME/Private. However, some private, as long as the user OWNS the
users change this to other various directories. It really doesn't
matter to mount.ecryptfs_
directory specified in the file.
To be very specific, something like this, Martin...
if [ -e ~/.ecryptfs/ wrapped- passphrase ]; then Private. mnt ] && echo $(cat Private. mnt) "is encrypted" || echo "$HOME/Private is
[ -e ~/.ecryptfs/
~/.ecryptfs/
encrypted"
else
echo "No automounted eCryptfs here. Move along."
fi