tKey generation provides better feedback - tomb - the crypto undertaker
 (HTM) git clone git://parazyd.org/tomb.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 0095a89d4d4ee01f6859ae04c951c8af1f1ac6f9
 (DIR) parent 600ffb11700635694e2cb57e376519979d9e40d4
 (HTM) Author: boyska <piuttosto@logorroici.org>
       Date:   Thu, 28 Apr 2011 23:32:09 +0200
       
       Key generation provides better feedback
       
       Diffstat:
         M src/tomb                            |       7 ++++++-
       
       1 file changed, 6 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/src/tomb b/src/tomb
       t@@ -298,9 +298,14 @@ create_tomb() {
            act "Generating secret key..."
            act "this operation takes time, keep using this computer on other tasks,"
            act "once done you will be asked to choose a password for your tomb."
       +    act "To make it faster you can move the mouse"
            touch ${keytmp}/tomb.tmp
            chmod 0600 ${keytmp}/tomb.tmp
       -    $DD bs=1 count=256 if=/dev/random of=${keytmp}/tomb.tmp
       +    if [[ $DD = "dcfldd" ]]; then
       +        $DD bs=1 count=256 if=/dev/random of=${keytmp}/tomb.tmp statusinterval=1
       +    else
       +        $DD bs=1 count=256 if=/dev/random of=${keytmp}/tomb.tmp
       +    fi
            if ! [ -r ${keytmp}/tomb.tmp ]; then
                error "cannot generate encryption key, operation aborted."
                umount ${keytmp}