preremove revision 7c478bd95313f5f23a4c958a745db2134aa03244
486N/A#! /bin/sh
486N/A#
486N/A# CDDL HEADER START
486N/A#
911N/A# The contents of this file are subject to the terms of the
919N/A# Common Development and Distribution License, Version 1.0 only
486N/A# (the "License"). You may not use this file except in compliance
486N/A# with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# ident "%Z%%M% %I% %E% SMI"
919N/A#
486N/A# Copyright (c) 1998, 2001 by Sun Microsystems, Inc.
486N/A# All rights reserved.
486N/A#
486N/A
493N/A#
486N/A# Remove the ngdr driver if it is installed.
486N/A#
493N/A
486N/ANAMEMAJOR="${BASEDIR}/etc/name_to_major"
911N/AREM_DRV="/usr/sbin/rem_drv -b ${BASEDIR}"
911N/A
911N/ADRV="ngdr"
911N/A
486N/Agrep "^${DRV} " $NAMEMAJOR > /dev/null 2>&1
486N/Aif [ $? -eq 0 ]; then
486N/A ${REM_DRV} ${DRV}
486N/A if [ $? -ne 0 ]; then
486N/A exit 1
493N/A fi
493N/Afi
486N/A
486N/Aexit 0