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