postinstall revision 4df55fde49134f9735f84011f23a767c75e393c7
252N/A#!/bin/sh
252N/A#
252N/A# CDDL HEADER START
252N/A#
252N/A# The contents of this file are subject to the terms of the
252N/A# Common Development and Distribution License (the "License").
252N/A# You may not use this file except in compliance with the License.
252N/A#
252N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
252N/A# or http://www.opensolaris.org/os/licensing.
252N/A# See the License for the specific language governing permissions
252N/A# and limitations under the License.
252N/A#
252N/A# When distributing Covered Code, include this CDDL HEADER in each
252N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
252N/A# If applicable, add the following below this CDDL HEADER, with the
252N/A# fields enclosed by brackets "[]" replaced with your own identifying
252N/A# information: Portions Copyright [yyyy] [name of copyright owner]
252N/A#
252N/A# CDDL HEADER END
5680N/A#
5680N/A
5425N/A#
252N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5680N/A# Use is subject to license terms.
5680N/A#
5680N/A
252N/APATH="/usr/bin:/usr/sbin:${PATH}"
252N/Aexport PATH
5680N/A
252N/Ainstalled() {
252N/A driver=$1
5865N/A grep "^${driver} " $BASEDIR/etc/name_to_major > /dev/null 2>&1
618N/A
844N/A return $?
5865N/A}
5865N/A
5865N/AEXIT=0
1258N/A
252N/Ainstalled fpc || add_drv -b ${BASEDIR} -m '* 0666 root sys' fpc || EXIT=1
5865N/A
2899N/Ainstalled n2piupc || add_drv -b ${BASEDIR} -m '* 0666 root sys' \
5680N/A -i '"SUNW,n2piu-pr" "SUNW,vfpiu-pr"' n2piupc || EXIT=1
5680N/A
5680N/Ainstalled iospc || add_drv -b ${BASEDIR} -m '* 0666 root sys' \
252N/A -i '"SUNW,ktios-pr" "SUNW,rfios-pr"' iospc || EXIT=1
5680N/A
252N/Aexit $EXIT
252N/A