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

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=acfssinglefsmount
 
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
