preremove revision 7c478bd95313f5f23a4c958a745db2134aa03244
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync#! /bin/sh
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync#
5b281ba489ca18f0380d7efc7a5108b606cce449vboxsync# CDDL HEADER START
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync#
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# The contents of this file are subject to the terms of the
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# Common Development and Distribution License, Version 1.0 only
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync# (the "License"). You may not use this file except in compliance
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# with the License.
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync#
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# or http://www.opensolaris.org/os/licensing.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# See the License for the specific language governing permissions
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# and limitations under the License.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# When distributing Covered Code, include this CDDL HEADER in each
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# If applicable, add the following below this CDDL HEADER, with the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# CDDL HEADER END
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# Use is subject to license terms.
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync#
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsync# ident "%Z%%M% %I% %E% SMI"
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync#
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# SUNWad810 preremove script
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsyncPATH=/usr/bin:/usr/sbin:${PATH}
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsyncexport PATH
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync
7d6e0aa02bf89fa403a13d5eac18a18b5a79893fvboxsyncEXIT=0
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsyncinstalled() {
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync driver=$1
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync grep "^${driver} " $BASEDIR/etc/name_to_major > /dev/null 2>&1
6473a6585394a0255de9936152f2fd35d068b347vboxsync if [ "$?" -eq 0 ]; then
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync return 1
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync else
7d6e0aa02bf89fa403a13d5eac18a18b5a79893fvboxsync return 0
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync fi
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync}
7995839c0b791ae2334df998d34dbccac12b3b41vboxsync
7995839c0b791ae2334df998d34dbccac12b3b41vboxsynccase "${ARCH}" in
7995839c0b791ae2334df998d34dbccac12b3b41vboxsync i386)
7995839c0b791ae2334df998d34dbccac12b3b41vboxsync installed audio810 || rem_drv -b ${BASEDIR} audio810 || EXIT=1
7995839c0b791ae2334df998d34dbccac12b3b41vboxsync ;;
e1cda3b0b3faa83df2fe0bf69e6938a6e7c4cb20vboxsyncesac
e1cda3b0b3faa83df2fe0bf69e6938a6e7c4cb20vboxsync
e1cda3b0b3faa83df2fe0bf69e6938a6e7c4cb20vboxsyncexit ${EXIT}
e1cda3b0b3faa83df2fe0bf69e6938a6e7c4cb20vboxsync