#!/bin/sh # # $Header: usm/src/cmds/acfsroot/acfsroot /main/6 2010/07/29 10:20:20 agraves Exp $ # # acfsroot # # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. # # NAME # acfsroot - front end for the Perl script that does the work. # # DESCRIPTION # Purpose # install or uninstall USM components. # # NOTES # # MODIFIED (MM/DD/YY) # agraves 07/29/10 - Update the location of tools_driver inside of ADE. # averhuls 05/04/09 - Replace '==' with '=' so that it works on Solaris. # averhuls 04/30/09 - Set ORA_CRS_HOME. # averhuls 03/27/09 - Minor change for when the current dir is not OH. # averhuls 03/25/09 - Handle case of ORACLE_HOME is not set in env. # averhuls 01/29/08 - Creation from usm_root # # NOTES # This wrapper program now supports only Lunix/Unix platforms. # Use acfsroot.bat for Windows platforms. # ############################################################################# if [ ! -d "$ADE_VIEW_ROOT" ] ; then BASE=`dirname $0` cd $BASE ORACLE_HOME=`pwd` if [ `basename $ORACLE_HOME` = 'bin' ] ; then # usm_root lives in $ORACLE_HOME/bin - lose the trailing '/bin'. ORACLE_HOME=`dirname $ORACLE_HOME` ORA_CRS_HOME=$ORACLE_HOME fi fi export ORACLE_HOME ORA_CRS_HOME CMDNAME=acfsroot if [ ! -d "$ADE_VIEW_ROOT" ] ; then TOOLS_DRIVER=${ORACLE_HOME}/lib/acfstoolsdriver.sh else TOOLS_DRIVER=${ADE_VIEW_ROOT}/usm/bin/acfstoolsdriver.sh fi exec $TOOLS_DRIVER $CMDNAME $@ # Should never get here. exit -1