i.pkcs11confbase revision 8d26100c1d185652ac4e12e1b6c2337446ad0746
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive# CDDL HEADER START
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive# The contents of this file are subject to the terms of the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive# Common Development and Distribution License (the "License").
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive# You may not use this file except in compliance with the License.
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive# See the License for the specific language governing permissions
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive# and limitations under the License.
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive# When distributing Covered Code, include this CDDL HEADER in each
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive# If applicable, add the following below this CDDL HEADER, with the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive# fields enclosed by brackets "[]" replaced with your own identifying
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive# information: Portions Copyright [yyyy] [name of copyright owner]
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive# CDDL HEADER END
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive# Use is subject to license terms.
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive if [ ! -f $dest ] ; then
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive #check if destination already has metaslot configuration line
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive if [ $? != 0 ] ; then
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive #metaslot line doesn't exist, need to add it
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive if [ $? = 0 ] ; then
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive { print ENVIRON["metaslot_config"] } \
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive { print } \
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive # Undo the old pkcs11_softtoken_extra name
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive sed 's/pkcs11_softtoken_extra\.so/pkcs11_softtoken.so/' \
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive # Add pkcs11_tpm if it is not present.
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive if [ $? != 0 ] ; then
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive { print ENVIRON["pkcs11tpm"] } \
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive { print } \