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