postinstall revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
305N/A#!/bin/sh
305N/A#
305N/A# CDDL HEADER START
305N/A#
305N/A# The contents of this file are subject to the terms of the
305N/A# Common Development and Distribution License (the "License").
305N/A# You may not use this file except in compliance with the License.
305N/A#
305N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
305N/A# or http://www.opensolaris.org/os/licensing.
305N/A# See the License for the specific language governing permissions
305N/A# and limitations under the License.
305N/A#
305N/A# When distributing Covered Code, include this CDDL HEADER in each
305N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
305N/A# If applicable, add the following below this CDDL HEADER, with the
305N/A# fields enclosed by brackets "[]" replaced with your own identifying
305N/A# information: Portions Copyright [yyyy] [name of copyright owner]
305N/A#
305N/A# CDDL HEADER END
305N/A#
305N/A#
305N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
305N/A# Use is subject to license terms.
305N/A#
305N/A
305N/APATH=/usr/bin:/usr/sbin:$PATH; export PATH
305N/A
305N/A# Driver definitions
615N/ADRVR_NAME=fcsm
586N/ADRVR_PERM="-m '* 0600 root sys'"
618N/ADRVR_CLASS=""
586N/ADRVR_ALIASES=""
305N/A
615N/A
305N/Aif [ -z "${BASEDIR}" ]; then
305N/A echo "\n$0 Failed: BASEDIR is not set.\n" >&2
305N/A exit 1
305N/Afi
305N/A
305N/A# Remove existing definition, if it exists.
305N/A/usr/sbin/rem_drv -b "${BASEDIR}" ${DRVR_NAME} > /dev/null 2>&1
305N/A
305N/AADD_DRV="add_drv -n -b ${BASEDIR}"
305N/A
305N/Aeval ${ADD_DRV} "${DRVR_PERM}" ${DRVR_CLASS} "${DRVR_ALIASES}" ${DRVR_NAME}
305N/Aif [ $? -ne 0 ]; then
305N/A echo "\nCommand Failed:\n${ADD_DRV} "${DRVR_PERM}" ${DRVR_CLASS} \
305N/A "${DRVR_ALIASES}" ${DRVR_NAME}\n" >&2
305N/A exit 1
305N/Afi
305N/A
305N/Aexit 0
615N/A