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