postinstall revision 617e2443dfc17fe44fd44c0675d6aad2ffc9df42
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# CDDL HEADER START
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# The contents of this file are subject to the terms of the
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# Common Development and Distribution License (the "License").
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# You may not use this file except in compliance with the License.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# See the License for the specific language governing permissions
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# and limitations under the License.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# When distributing Covered Code, include this CDDL HEADER in each
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# If applicable, add the following below this CDDL HEADER, with the
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# fields enclosed by brackets "[]" replaced with your own identifying
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# information: Portions Copyright [yyyy] [name of copyright owner]
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# CDDL HEADER END
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# Use is subject to license terms.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# Driver support device list
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis \"pci8086,2984\" \
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis \"pci8086,2994\" \
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis \"pci8086,29a4\" \
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis \"pci8086,29b4\" \
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis \"pci8086,29c4\" \
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis \"pci8086,2e04\""
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# Select the correct add_drv options to execute.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis # Irrespective of whether hardware exists
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis # or not don't attempt to attach driver
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis # to the hardware. This is to avoid problems
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis # with installing a 32 bit driver on a 64 bit
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis # running system.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis # Note: don't use '-b' under this situation.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis # See add_drv(1M) for more info.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis # On a client,
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis # modify the system files and touch/reconfigure
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis # for reconfigure reboot
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# Make sure the driver has *not* been previously installed
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis# before attempting to add the driver.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanisgrep -w "${DRV}" ${BASEDIR}/etc/name_to_major > /dev/null 2>&1
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis ${ADD_DRV} -m '* 0644 root sys' -i "${DRVALIAS}" ${DRV}
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis echo "${DRV} is already installed!"