Index: orarun-2.1/common.sh
===================================================================
--- orarun-2.1.orig/common.sh
+++ orarun-2.1/common.sh
@@ -72,7 +72,7 @@ ora_environment()
 
   # Set Intelligent Agent Start/Stop 
   AGENT_VERSION="unknown"
-  if [ ! -z "$ORACLE_HOME" -a ! -d "$ORACLE_HOME" ]; then
+  if [ ! -z "$ORACLE_HOME" -a -d "$ORACLE_HOME" ]; then
   if test -x "$AGENT_HOME/bin/emctl"; then
     # If Oracle Grid Control Agent is installed 
     AGENT_VERSION="10gA"
