Read SLOT numeric value
This commit is contained in:
parent
dd6786ef50
commit
be6296bd39
1 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@
|
|||
PACKAGE="opencryptoki"
|
||||
|
||||
LOGDIR=`mktemp -d`
|
||||
|
||||
[ -z "$SLOT" ] && SLOT=sw
|
||||
|
||||
function reset_tokens() {
|
||||
rlLogInfo "Reseting tokens..."
|
||||
|
|
@ -84,7 +84,7 @@ rlJournalStart
|
|||
pkcsconf -t
|
||||
# allow to pass SLOT number as a parameter
|
||||
# or take the first available slot (Token)
|
||||
[ -z "$SLOT" ] && SLOT=`pkcsconf -t | sed -n 's/^Token #\([0-9]\).*/\1/gp' | head -n 1`
|
||||
SLOT=$( pkcsGetTokenSlot $SLOT )
|
||||
rlLogInfo "Token under a test"
|
||||
pkcsconf -t -c $SLOT
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue