tomb

the crypto undertaker
git clone git://parazyd.org/tomb.git
Log | Files | Refs | README | LICENSE

commit fb5d1d2cf9b7989327d004bd924bc2845be309df
parent f9f8b16a4d23f8b052ff9afa9ee2e2b0c01f7ba4
Author: boyska <piuttosto@logorroici.org>
Date:   Sun, 30 Oct 2011 20:35:32 +0100

Give info about used swaps on swap warning and error

Diffstat:
Msrc/tomb | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/tomb b/src/tomb @@ -293,6 +293,8 @@ create_tomb() { error "You have swap activated; use --ignore-swap if you want to skip this check" act "Using encryption with swap activated is very bad, because some files, or even your secret key, could be written on hard disk." act "However, it could be that your swap is encrypted. If this is case, this is ok. Then, use --ignore-swap to skip this check" + act "You seem to be using `tail -n +2 /proc/swaps|wc -l` swaps:" + tail -n +2 /proc/swaps exit 1 fi if ! [ ${CMD2} ]; then @@ -473,6 +475,8 @@ mount_tomb() { error "You have swap activated; use --ignore-swap if you want to skip this check" act "Using encryption with swap activated is very bad, because some files, or even your secret key, could be written on hard disk." act "However, it could be that your swap is encrypted. If this is case, this is ok. Then, use --ignore-swap to skip this check" + act "You seem to be using `tail -n +2 /proc/swaps|wc -l` swaps:" + tail -n +2 /proc/swaps exit 1 fi if ! [ ${CMD2} ]; then