postinstall revision 4496171313bed39e96f21bc2f9faf2868e267ae3
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater# CDDL HEADER START
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# The contents of this file are subject to the terms of the
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# Common Development and Distribution License (the "License").
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# You may not use this file except in compliance with the License.
2ec4ab21838e218863d052ebfa3e106e04f50820Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
78cb74fab4665da2e2641ba909c6f59f74cc4193Automatic Updater# See the License for the specific language governing permissions
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# If applicable, add the following below this CDDL HEADER, with the
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use is subject to license terms.
831f79c4310a7d38fc3475ccfff531b2b2535641Automatic Updater# ident "%Z%%M% %I% %E% SMI"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# install the UltraSPARC-T2 Crypto Provider device driver
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Add hardware provider section for the n2cp driver
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater# If /etc/crypto/kcf.conf doesn't exist, bail immediately
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater echo "$0: ERROR - $kcfconf doesn't exist"
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# If the package has been already installed, remove old entries
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington echo "$0: missing Start or End delimiters for $PKGINST in $kcfconf."
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater echo "$0: $kcfconf may be corrupted and was not updated."
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater sed -e "/$pkg_start/,/$pkg_end/d" $kcfconf > $tmpfile || error=yes
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Append the delimiters for this package
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonecho "$pkg_start driver_names=n2cp" >> $tmpfile || error=yes
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Install the updated config file and clean up the tmp file
b1265b5a06df36d490d4bdf54284fb133a1f5a84Automatic Updater# All done, if any of the steps above fail, report the error
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater echo "$0: ERROR - failed to update $kcfconf."