postinstall revision 57f4a14abf7408570afb91750e10e4b57f721549
341N/A#
341N/A# CDDL HEADER START
341N/A#
341N/A# The contents of this file are subject to the terms of the
688N/A# Common Development and Distribution License (the "License").
341N/A# You may not use this file except in compliance with the License.
341N/A#
341N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
341N/A# or http://www.opensolaris.org/os/licensing.
341N/A# See the License for the specific language governing permissions
341N/A# and limitations under the License.
341N/A#
341N/A# When distributing Covered Code, include this CDDL HEADER in each
341N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
341N/A# If applicable, add the following below this CDDL HEADER, with the
341N/A# fields enclosed by brackets "[]" replaced with your own identifying
341N/A# information: Portions Copyright [yyyy] [name of copyright owner]
341N/A#
341N/A# CDDL HEADER END
341N/A#
341N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
341N/A# Use is subject to license terms.
341N/A#
341N/A
341N/APATH="/usr/bin:/usr/sbin:${PATH}"
341N/Aexport PATH
341N/AEXIT=0
341N/A
341N/AARCH="`uname -p`"
341N/ANAMEMAJOR="$BASEDIR/etc/name_to_major"
341N/ADRIVER_ALIASES="$BASEDIR/etc/driver_aliases"
341N/A
688N/A# add_drv ecpp driver if not already installed
341N/Amodnum=`grep -c ecpp ${NAMEMAJOR}`
341N/Aif [ "$modnum" = "0" ]; then
341N/A # add new entries to name_to_major, minor_perm, driver_classes files
493N/A /usr/sbin/add_drv -b ${BASEDIR} -i '"lp"' -m '* 0666 root sys' -n ecpp
341N/Afi
341N/A
688N/A# add alias if necessary for Lucent PCI modem
341N/Alucent_alias=`grep -c pci11c1,480 ${DRIVER_ALIASES}`
341N/Aif [ "${ARCH}" = "i386" -a "$lucent_alias" = "0" ]; then
341N/A /usr/sbin/update_drv -b "${BASEDIR}" -a -i '"pci11c1,480"' asy
688N/Afi
688N/A
341N/Aexit 0
341N/A