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