postinstall revision dfb9e8d753e971e3a4136d19823ad919e3fd75c7
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#! /bin/sh
7e5b2100ea65658a7ec3795919b4ecd29a6f118aMark Andrews#
7e5b2100ea65658a7ec3795919b4ecd29a6f118aMark Andrews# CDDL HEADER START
eae67738cba5ca069e9d1d4e7b836a2f7b00a374Mark Andrews#
eae67738cba5ca069e9d1d4e7b836a2f7b00a374Mark Andrews# The contents of this file are subject to the terms of the
2a40fdc2d34adb8a5c72a748449699666032d461Mark Andrews# Common Development and Distribution License (the "License").
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark Andrews# You may not use this file except in compliance with the License.
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews#
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# or http://www.opensolaris.org/os/licensing.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
d56e188030368b835122d759ebbf8d9613c166f4Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Use is subject to license terms.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
b6617c5adad7f12e5fcde1e873f7b982d247fe05Mark Andrews# ident "%Z%%M% %I% %E% SMI"
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
b6617c5adad7f12e5fcde1e873f7b982d247fe05Mark Andrews# SUNWadixp postinstall script
b6617c5adad7f12e5fcde1e873f7b982d247fe05Mark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonPATH=/usr/bin:/usr/sbin:${PATH}
b6617c5adad7f12e5fcde1e873f7b982d247fe05Mark Andrewsexport PATH
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrewsnot_installed() {
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews driver=$1
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews grep "^${driver} " $BASEDIR/etc/name_to_major > /dev/null 2>&1
c6d4f781529d2f28693546b25b2967d44ec89e60Mark Andrews return $?
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews}
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsEXIT=0
c069a20053d41ae299eb9457e50ea44ae9f73ed2Mark Andrews
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrewscase "${ARCH}" in
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews i386)
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrews not_installed audioixp|| \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews add_drv -b "${BASEDIR}" \
3f6174bffe227be44e241a29d186add00c032ff6Mark Andrews -i '"pci1002,4370"' \
1eb1e1e838d2ea00b166c918bf50764a95826be8Mark Andrews -n audioixp || \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews EXIT=1
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson ;;
992616aaf75643a0c9f84826f0a1ed5a27e84328Mark Andrewsesac
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsexit ${EXIT}
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews