preremove revision b6c3f7863936abeae522e48a13887dddeb691a45
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews# CDDL HEADER START
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# The contents of this file are subject to the terms of the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Common Development and Distribution License, Version 1.0 only
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# (the "License"). You may not use this file except in compliance
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# When distributing Covered Code, include this CDDL HEADER in each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Use is subject to license terms.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#ident "%Z%%M% %I% %E% SMI"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Undo the changes for SUNWcry pkcs11_softtoken
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews# This preremove script reactivates pkcs11_softtoken with the policy.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Because we want to do the policy cloning and only have one of the softtoken's
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# enabled we can't used the r.pkcs11conf class action script.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# We can't run cryptoadm(1m) here because it might not be available.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinif [ ! -r $pkcs11conf ]; then
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein echo "/etc/crypto/pkcs11.conf not found, this may be an attempt to \c"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein echo "remove this package from an incorrect release of Solaris"