tMerge pull request #16 from davinerd/dependencies - tomb - the crypto undertaker
 (HTM) git clone git://parazyd.org/tomb.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 58e2b26694b1ed73d04e61722295653cc94957cb
 (DIR) parent 7b2fc78b1974297b3278e21e0784a4542640f115
 (HTM) Author: DJR <jaromil@dyne.org>
       Date:   Mon,  1 Aug 2011 13:32:54 -0700
       
       Merge pull request #16 from davinerd/dependencies
       
       all dependencies are checked for at startup
       Diffstat:
         M src/tomb                            |      12 ++++++++++++
       
       1 file changed, 12 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/src/tomb b/src/tomb
       t@@ -84,6 +84,18 @@ check_bin() {
                STEGHIDE=0
            fi
        
       +    which cryptsetup > /dev/null
       +    if [ $? != 0 ]; then
       +        error "Cannot find cryptsetup. Please install it."
       +        exit 1
       +    fi
       +
       +    which pinentry > /dev/null
       +    if [ $? != 0 ]; then
       +        error "Cannot find pinentry. Please install it."
       +        exit 1
       +    fi
       + 
            # check for tomb-open script
            if [ "$0" = "./tomb" ]; then
                TOMBOPENEXEC="./tomb-open"