#!/bin/sh
#
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"@(#)preremove	1.1	08/12/02 SMI"
#

PATH="/usr/bin:/usr/sbin:${PATH}"
export PATH

check_installed() {
	driver=$1
	grep "^${driver} " $BASEDIR/etc/name_to_major > /dev/null 2>&1
	if [ "$?" -eq 0 ]; then
		return 1
	else
		return 0
	fi
}

EXIT=0

check_installed hermon || rem_drv -b ${BASEDIR} hermon || EXIT=1

exit $EXIT
