Comment 3 for bug 182535

Revision history for this message
Axel Pospischil (apos) wrote :

Hi there,

I was a little bit annoyed that when i logged out, crytkeeper does not take care of unmounting my directories.

So I wrote a little script you should put into

/etc/gdm/PostSession/Default

The script umounts ALL existing encfs filesystems on you PC after logout of a gnome session:

for dir in "$(cat /etc/mtab | grep encfs | awk '{print $2}' | sed -e 's/40/ /g')"
do
echo "${dir}" | awk '{system("umount " $0)}'
done

Greets Axel