postinstall revision 4df55fde49134f9735f84011f23a767c75e393c7
1116N/A#! /bin/sh
1116N/A#
1116N/A# CDDL HEADER START
1116N/A#
1116N/A# The contents of this file are subject to the terms of the
1116N/A# Common Development and Distribution License (the "License").
1116N/A# You may not use this file except in compliance with the License.
1116N/A#
1116N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1116N/A# or http://www.opensolaris.org/os/licensing.
1116N/A# See the License for the specific language governing permissions
1116N/A# and limitations under the License.
1116N/A#
1116N/A# When distributing Covered Code, include this CDDL HEADER in each
1116N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1116N/A# If applicable, add the following below this CDDL HEADER, with the
1116N/A# fields enclosed by brackets "[]" replaced with your own identifying
1116N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1116N/A#
1116N/A# CDDL HEADER END
1116N/A#
1116N/A
1116N/A#
1116N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
1116N/A# Use is subject to license terms.
1116N/A#
1116N/A
1116N/A#
1116N/A# install the UltraSPARC-T2 Crypto Provider device driver
1116N/A#
1116N/A
1116N/APATH="/usr/bin:/usr/sbin:${PATH}"
1116N/Aexport PATH
1116N/ANAMEMAJOR="${BASEDIR}/etc/name_to_major"
1116N/A
1116N/Aif [ "${BASEDIR:=/}" = "/" ]
1116N/Athen
1116N/A ADD_DRV="/usr/sbin/add_drv"
1116N/Aelse
1116N/A ADD_DRV="/usr/sbin/add_drv -b ${BASEDIR}"
1124N/Afi
1116N/A
1116N/Agrep -w n2cp ${NAMEMAJOR} > /dev/null 2>&1
1116N/Aif [ $? -ne 0 ]
1116N/Athen
1116N/A $ADD_DRV -i '"SUNW,n2-cwq" "SUNW,vf-cwq" "SUNW,kt-cwq"' n2cp || exit 1
1116N/Afi
1116N/A
1116N/Aexit 0
1116N/A