postinstall revision ea1a228c80597366447774aa1988868492330eb5
a4b0396828d3dfafb72e49a456c926b62bd19fb4vboxsync#!/bin/sh
a4b0396828d3dfafb72e49a456c926b62bd19fb4vboxsync#
a4b0396828d3dfafb72e49a456c926b62bd19fb4vboxsync# CDDL HEADER START
a4b0396828d3dfafb72e49a456c926b62bd19fb4vboxsync#
a4b0396828d3dfafb72e49a456c926b62bd19fb4vboxsync# The contents of this file are subject to the terms of the
a4b0396828d3dfafb72e49a456c926b62bd19fb4vboxsync# Common Development and Distribution License (the "License").
ecb894e73b05a2c316a46cda31b899d54a6ae9d3vboxsync# You may not use this file except in compliance with the License.
ecb894e73b05a2c316a46cda31b899d54a6ae9d3vboxsync#
ecb894e73b05a2c316a46cda31b899d54a6ae9d3vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ecb894e73b05a2c316a46cda31b899d54a6ae9d3vboxsync# or http://www.opensolaris.org/os/licensing.
ecb894e73b05a2c316a46cda31b899d54a6ae9d3vboxsync# See the License for the specific language governing permissions
ecb894e73b05a2c316a46cda31b899d54a6ae9d3vboxsync# and limitations under the License.
90a35323c5f9ed1401511bf7e94b65575ac09ecbvboxsync#
90a35323c5f9ed1401511bf7e94b65575ac09ecbvboxsync# When distributing Covered Code, include this CDDL HEADER in each
90a35323c5f9ed1401511bf7e94b65575ac09ecbvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
90a35323c5f9ed1401511bf7e94b65575ac09ecbvboxsync# If applicable, add the following below this CDDL HEADER, with the
90a35323c5f9ed1401511bf7e94b65575ac09ecbvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
90a35323c5f9ed1401511bf7e94b65575ac09ecbvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
90a35323c5f9ed1401511bf7e94b65575ac09ecbvboxsync#
90a35323c5f9ed1401511bf7e94b65575ac09ecbvboxsync# CDDL HEADER END
90a35323c5f9ed1401511bf7e94b65575ac09ecbvboxsync#
90a35323c5f9ed1401511bf7e94b65575ac09ecbvboxsync
90a35323c5f9ed1401511bf7e94b65575ac09ecbvboxsync#
90a35323c5f9ed1401511bf7e94b65575ac09ecbvboxsync# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
1c65c68707cffcad0ea498eba4da76fa07bf2d6cvboxsync# Use is subject to license terms.
1c65c68707cffcad0ea498eba4da76fa07bf2d6cvboxsync#
1c65c68707cffcad0ea498eba4da76fa07bf2d6cvboxsync# ident "%Z%%M% %I% %E% SMI"
1c65c68707cffcad0ea498eba4da76fa07bf2d6cvboxsync#
1c65c68707cffcad0ea498eba4da76fa07bf2d6cvboxsync
1c65c68707cffcad0ea498eba4da76fa07bf2d6cvboxsyncPATH="/usr/bin:/usr/sbin:${PATH}"
b511f3c653d106f51f22f5015f6a24cc6e1108d6vboxsyncexport PATH
b511f3c653d106f51f22f5015f6a24cc6e1108d6vboxsync
b511f3c653d106f51f22f5015f6a24cc6e1108d6vboxsyncinstalled() {
b511f3c653d106f51f22f5015f6a24cc6e1108d6vboxsync driver=$1
b511f3c653d106f51f22f5015f6a24cc6e1108d6vboxsync grep "^${driver} " $BASEDIR/etc/name_to_major > /dev/null 2>&1
b511f3c653d106f51f22f5015f6a24cc6e1108d6vboxsync
73130ef6d5209630eb0e7baa07415cad1a7791dbvboxsync return $?
73130ef6d5209630eb0e7baa07415cad1a7791dbvboxsync}
73130ef6d5209630eb0e7baa07415cad1a7791dbvboxsync
73130ef6d5209630eb0e7baa07415cad1a7791dbvboxsyncEXIT=0
b511f3c653d106f51f22f5015f6a24cc6e1108d6vboxsync
73130ef6d5209630eb0e7baa07415cad1a7791dbvboxsyncinstalled fpc || add_drv -b ${BASEDIR} -m '* 0666 root sys' fpc || EXIT=1
aa42629e12e555ed393a4e1a0580560de23f01f9vboxsync
aa42629e12e555ed393a4e1a0580560de23f01f9vboxsyncinstalled n2piupc || add_drv -b ${BASEDIR} -m '* 0666 root sys' \
aa42629e12e555ed393a4e1a0580560de23f01f9vboxsync -i '"SUNW,n2piu-pr"' n2piupc || EXIT=1
aa42629e12e555ed393a4e1a0580560de23f01f9vboxsync
aa42629e12e555ed393a4e1a0580560de23f01f9vboxsyncexit $EXIT
aa42629e12e555ed393a4e1a0580560de23f01f9vboxsync