3 ### TrueCrypt PM Sleep Unmounter
4 ### This file is a part of `truecrypt-extra`
6 ### (c) Andrew Sichevoi, http://thekondor.net
7 ### Distributed in the terms of GNU GPL v3.0+ license
9 ### The latest version is available on http://git.thekondor.net
11 if [ -f /etc/default/truecrypt ]; then
12 . /etc/default/truecrypt
15 unmount_all_truecrypt_volumes ()
17 ${TRUECRYPT_BINARY} -d
21 suspend|suspend_hybrid|hibernate)
22 if "${UNMOUNT_ON_SLEEP}"; then
23 unmount_all_truecrypt_volumes
27 ### There is no need to do anything here