~siretart/cryptsetup/debian

« back to all changes in this revision

Viewing changes to debian/cryptdisks.functions

  • Committer: Reinhard Tartler
  • Date: 2008-08-30 15:14:02 UTC
  • Revision ID: siretart@tauware.de-20080830151402-8dap4njkg7cb7bst
import cryptsetup_1.0.6-6.dsc

Show diffs side-by-side

added added

removed removed

Lines of Context:
363
363
                keyscriptarg="Enter passphrase to unlock the disk $src ($dst): "
364
364
                key="-"
365
365
                KEYSCRIPT="/lib/cryptsetup/askpass"
366
 
        elif [ "$key" != "${key%/dev/*}" ]; then
367
 
                # no keyscript, device (random) key => special treatment
 
366
        else
 
367
                # no keyscript, key => file input
368
368
                keyscriptarg=""
369
369
                key="$key"
370
370
                KEYSCRIPT=""
371
 
        else
372
 
                # no keyscript, key => file input
373
 
                keyscriptarg="$key"
374
 
                key="-"
375
 
                KEYSCRIPT="cat"
376
371
        fi
377
372
 
378
373
        PARAMS="$PARAMS --key-file=$key"