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