#!/bin/sh
#                                                                          
# Copyright (c) 2001-2003, by Broadcom, Inc.                                    
# All Rights Reserved.                                                     
#                                                                          
# FILE       : P R E R E M O V E 
#                                                                          
# Description: This file contains pre remove script
#                                                                          
# Revision History       Author          Comments/Descriptions                
#    1.0            Anil Veerabhadrappa        Created                              
#

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

#
# Driver Information
#
DRV=bnx

REM_DRV=/usr/sbin/rem_drv

if [ "${BASEDIR}" = "/" ]; then
    #
    # On a running system, modify the system
    # files and attach the driver.
    #
    REM_DRV_FLAGS=""
else
    #
    # On a client, modify the system files
    # relative to BASEDIR.
    #
    REM_DRV_FLAGS="-b ${BASEDIR}"
fi

#
# Make sure add_drv has not been previously executed
# before attempting to add the driver.
#
${REM_DRV} ${REM_DRV_FLAGS} ${DRV}

exit 0
