#!/bin/sh 
#
# $Header: usm/src/cmds/acfsload/acfsload /main/1 2009/02/12 10:27:11 averhuls Exp $
#
# acfsload
# 
# Copyright (c) 2007, 2009, Oracle and/or its affiliates.All rights reserved. 
#
#    NAME
#      acfsload - front end for the Perl script that does the work.
#
#    DESCRIPTION
#      Purpose
#          load or unload USM drivers.
#
#    NOTES
#      This wrapper program now supports only Lunix/Unix platforms.
#      Use acfsload.bat for Windows platforms.
#
#    MODIFIED   (MM/DD/YY)
#    averhuls    02/02/09 - Creation from usm_load
#
#############################################################################

ORA_CRS_HOME=%ORA_CRS_HOME%
if [ ! -d $ORA_CRS_HOME ]; then
  ORA_CRS_HOME=$ORACLE_HOME
fi

ORACLE_HOME=$ORA_CRS_HOME
export ORA_CRS_HOME ORACLE_HOME

CMDNAME=acfsload
 
if [ ! -d "$ADE_VIEW_ROOT" ] ; then
  TOOLS_DRIVER=${ORACLE_HOME}/lib/acfstoolsdriver.sh
else
  TOOLS_DRIVER=${ADE_VIEW_ROOT}/usm/src/cmds/acfstoolsdriver.sh
fi

exec $TOOLS_DRIVER $CMDNAME $@
# Should never get here.
exit -1
