postinstall revision 7c478bd95313f5f23a4c958a745db2134aa03244
5d92fff82718cd018f0b61a10b9ad4d2b8064c95rpluem#
415bb21f281e9b4f905d5893fede9165bdf1491bjim# CDDL HEADER START
415bb21f281e9b4f905d5893fede9165bdf1491bjim#
2cd2891cea784de97020bcada4e834e224428d0ccovener# The contents of this file are subject to the terms of the
2cd2891cea784de97020bcada4e834e224428d0ccovener# Common Development and Distribution License, Version 1.0 only
2cd2891cea784de97020bcada4e834e224428d0ccovener# (the "License"). You may not use this file except in compliance
2cd2891cea784de97020bcada4e834e224428d0ccovener# with the License.
2cd2891cea784de97020bcada4e834e224428d0ccovener#
2cd2891cea784de97020bcada4e834e224428d0ccovener# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
03944c8577b204701c849fce01f3fcb423a615f1covener# or http://www.opensolaris.org/os/licensing.
03944c8577b204701c849fce01f3fcb423a615f1covener# See the License for the specific language governing permissions
03944c8577b204701c849fce01f3fcb423a615f1covener# and limitations under the License.
03944c8577b204701c849fce01f3fcb423a615f1covener#
f97e1288a50b3da1022b515d84bc57a5091f2fefcovener# When distributing Covered Code, include this CDDL HEADER in each
f97e1288a50b3da1022b515d84bc57a5091f2fefcovener# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f97e1288a50b3da1022b515d84bc57a5091f2fefcovener# If applicable, add the following below this CDDL HEADER, with the
f97e1288a50b3da1022b515d84bc57a5091f2fefcovener# fields enclosed by brackets "[]" replaced with your own identifying
7a975d0413ba303546b7619e4785cb641f7f09fdcovener# information: Portions Copyright [yyyy] [name of copyright owner]
7a975d0413ba303546b7619e4785cb641f7f09fdcovener#
7a975d0413ba303546b7619e4785cb641f7f09fdcovener# CDDL HEADER END
7a975d0413ba303546b7619e4785cb641f7f09fdcovener#
77504f17963a8dd941a921d9ddfa25ddb0f348d6kbrand#
77504f17963a8dd941a921d9ddfa25ddb0f348d6kbrand#ident "%Z%%M% %I% %E% SMI"
77504f17963a8dd941a921d9ddfa25ddb0f348d6kbrand#
77504f17963a8dd941a921d9ddfa25ddb0f348d6kbrand# Copyright (c) 1991-1999 by Sun Microsystems, Inc.
77504f17963a8dd941a921d9ddfa25ddb0f348d6kbrand# All rights reserved.
f06d5fd4cff0cd7953f92c20540059637abd439arpluem#
f06d5fd4cff0cd7953f92c20540059637abd439arpluem# Install NCA driver using add_drv -
f06d5fd4cff0cd7953f92c20540059637abd439arpluem# assume that we do not have to set the perms
75c2b964ca7ebfb32ad08c68c9db3bca5ecced55covener#
75c2b964ca7ebfb32ad08c68c9db3bca5ecced55covener
75c2b964ca7ebfb32ad08c68c9db3bca5ecced55covenerPATH="/usr/bin:/usr/sbin:${PATH}"
75c2b964ca7ebfb32ad08c68c9db3bca5ecced55covenerexport PATH
5ab58649d9a4b3af01a4141920613fbf74ced7fdminfrin
5ab58649d9a4b3af01a4141920613fbf74ced7fdminfrinnot_installed() {
5ab58649d9a4b3af01a4141920613fbf74ced7fdminfrin driver=$1
97f293b98fc6777e5baa836c30293f433f3c12e1minfrin grep "^${driver} " $BASEDIR/etc/name_to_major > /dev/null 2>&1
97f293b98fc6777e5baa836c30293f433f3c12e1minfrin return $?
97f293b98fc6777e5baa836c30293f433f3c12e1minfrin}
97f293b98fc6777e5baa836c30293f433f3c12e1minfrin
0e6c63c34b6c118ec6c28ddadda5eefb2584bf7dkbrandEXIT=0
0e6c63c34b6c118ec6c28ddadda5eefb2584bf7dkbrand
fa0316cc0d5c0e80d275877df428fd8061c0a79dsfnot_installed nca || add_drv -b ${BASEDIR} -n nca || EXIT=1
fa0316cc0d5c0e80d275877df428fd8061c0a79dsf
fa0316cc0d5c0e80d275877df428fd8061c0a79dsfexit $EXIT
fa0316cc0d5c0e80d275877df428fd8061c0a79dsf