preremove revision 30588217a56ff2c9137248fb2e5065c4f0101459
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# CDDL HEADER START
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# The contents of this file are subject to the terms of the
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# Common Development and Distribution License (the "License").
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# You may not use this file except in compliance with the License.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# See the License for the specific language governing permissions
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# and limitations under the License.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# When distributing Covered Code, include this CDDL HEADER in each
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# If applicable, add the following below this CDDL HEADER, with the
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# fields enclosed by brackets "[]" replaced with your own identifying
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# information: Portions Copyright [yyyy] [name of copyright owner]
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# CDDL HEADER END
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# Use is subject to license terms.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloronot_installed()
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro grep "^${driver} " ${BASEDIR}/etc/name_to_major > /dev/null 2>&1
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro if [ "$?" -eq 0 ]; then
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro# Unload and remove drivers
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloronot_installed cnex || rem_drv -b "${BASEDIR}" cnex || EXIT=1
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloronot_installed drctl || rem_drv -b "${BASEDIR}" drctl || EXIT=1
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloronot_installed vlds || rem_drv -b "${BASEDIR}" vlds || EXIT=1
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloronot_installed vcc || rem_drv -b "${BASEDIR}" vcc || EXIT=1
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloronot_installed vdc || rem_drv -b "${BASEDIR}" vdc || EXIT=1
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloronot_installed vds || rem_drv -b "${BASEDIR}" vds || EXIT=1
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloronot_installed vldc || rem_drv -b "${BASEDIR}" vldc || EXIT=1
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloronot_installed vnet || rem_drv -b "${BASEDIR}" vnet || EXIT=1
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloronot_installed vsw || rem_drv -b "${BASEDIR}" vsw || EXIT=1
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloroexit ${EXIT}