postinstall revision 7c478bd95313f5f23a4c958a745db2134aa03244
52N/A#!/bin/sh
52N/A#
292N/A# CDDL HEADER START
52N/A#
52N/A# The contents of this file are subject to the terms of the
811N/A# Common Development and Distribution License, Version 1.0 only
52N/A# (the "License"). You may not use this file except in compliance
52N/A# with the License.
52N/A#
52N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
292N/A# or http://www.opensolaris.org/os/licensing.
292N/A# See the License for the specific language governing permissions
292N/A# and limitations under the License.
292N/A#
52N/A# When distributing Covered Code, include this CDDL HEADER in each
52N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
52N/A# If applicable, add the following below this CDDL HEADER, with the
292N/A# fields enclosed by brackets "[]" replaced with your own identifying
292N/A# information: Portions Copyright [yyyy] [name of copyright owner]
292N/A#
292N/A# CDDL HEADER END
292N/A#
292N/A#
292N/A#pragma ident "%Z%%M% %I% %E% SMI"
292N/A#
292N/A# Copyright (c) 2001 by Sun Microsystems, Inc.
292N/A# All rights reserved.
292N/A#
52N/A
52N/APATH="/usr/bin:/usr/sbin:$PATH"
52N/Aexport PATH
52N/A
52N/AADD_DRV="add_drv -b ${BASEDIR}"
52N/A
52N/Anot_installed() {
52N/A driver=$1
52N/A grep "^${driver} " ${BASEDIR}/etc/name_to_major > /dev/null 2>&1
52N/A return $?
52N/A}
52N/A
292N/AEXIT=0
52N/A
52N/Anot_installed wrsm || $ADD_DRV -i '"SUNW,wci-rsm"' -m '* 0666 root sys' wrsm ||
5N/AEXIT=1
5N/A
5N/Aexit $EXIT
5N/A