postinstall revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
425f24e180891530bb91f6201a240b16a65e9e9bChristian Maeder# CDDL HEADER START
b7626913d1833e29c887d93a28c0aa0b33e057e2Christian Maeder# The contents of this file are subject to the terms of the
b7626913d1833e29c887d93a28c0aa0b33e057e2Christian Maeder# Common Development and Distribution License (the "License").
b7626913d1833e29c887d93a28c0aa0b33e057e2Christian Maeder# You may not use this file except in compliance with the License.
b7626913d1833e29c887d93a28c0aa0b33e057e2Christian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8d16bdf080c5976d1b00bd32905ff7378e82eda9Christian Maeder# or http://www.opensolaris.org/os/licensing.
0f71029957c6d6aca2860f97c7feb1ca5aecbfcaChristian Maeder# See the License for the specific language governing permissions
8d16bdf080c5976d1b00bd32905ff7378e82eda9Christian Maeder# and limitations under the License.
b7626913d1833e29c887d93a28c0aa0b33e057e2Christian Maeder# When distributing Covered Code, include this CDDL HEADER in each
b7626913d1833e29c887d93a28c0aa0b33e057e2Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b7626913d1833e29c887d93a28c0aa0b33e057e2Christian Maeder# If applicable, add the following below this CDDL HEADER, with the
8d16bdf080c5976d1b00bd32905ff7378e82eda9Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
6c5bdd5a051d8ab39d182f47c2e68ab7cf24f645Christian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
61ed8286ea9913a9a2a762ae33039f9a1965b8f3Christian Maeder# CDDL HEADER END
b7b9db5aa9a0290fae41464e5dd39b6210b23a52Christian Maeder# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
61ed8286ea9913a9a2a762ae33039f9a1965b8f3Christian Maeder# Use is subject to license terms.
8e2387e0117a9f16ab678f87ea18bc6991cb5843Christian Maeder# Driver definitions
8e2387e0117a9f16ab678f87ea18bc6991cb5843Christian Maederif [ -z "${BASEDIR}" ]; then
8e2387e0117a9f16ab678f87ea18bc6991cb5843Christian Maeder echo "\n$0 Failed: BASEDIR is not set.\n" >&2
8e2387e0117a9f16ab678f87ea18bc6991cb5843Christian Maeder# Remove existing definition, if it exists.
8e2387e0117a9f16ab678f87ea18bc6991cb5843Christian Maeder/usr/sbin/rem_drv -b "${BASEDIR}" ${DRVR_NAME} > /dev/null 2>&1
612782d45a76d33b5e078da8e0a0977de0f83356Christian Maedereval ${ADD_DRV} "${DRVR_PERM}" ${DRVR_CLASS} "${DRVR_ALIASES}" ${DRVR_NAME}
8e2387e0117a9f16ab678f87ea18bc6991cb5843Christian Maeder echo "\nCommand Failed:\n${ADD_DRV} "${DRVR_PERM}" ${DRVR_CLASS} \