From 5ad4b6385a02695756e2ce8353d4e618141ff6bb Mon Sep 17 00:00:00 2001
From: klang <klang@aps.anl.gov>
Date: Fri, 6 Jul 2018 15:12:17 -0500
Subject: [PATCH] Wrong directory

---
 iocBoot/iocxxx/softioc/xxx.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/iocBoot/iocxxx/softioc/xxx.sh b/iocBoot/iocxxx/softioc/xxx.sh
index d68f325..7b9e7e1 100755
--- a/iocBoot/iocxxx/softioc/xxx.sh
+++ b/iocBoot/iocxxx/softioc/xxx.sh
@@ -45,15 +45,15 @@ SELECTION=$1
 
 if [ -z "$IOC_STARTUP_DIR" ]
 then
-    # If no startup dir is specified, use this script's directory
-    IOC_STARTUP_DIR=`dirname $0`
+    # If no startup dir is specified, use this directory above the script's directory
+    IOC_STARTUP_DIR=`dirname $0`/..
     # see: http://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within#59916
 fi
 #!${ECHO} ${IOC_STARTUP_DIR}
 
 #####################################################################
 
-IOC_CMD="${IOC_STARTUP_DIR}/../../../bin/${EPICS_HOST_ARCH}/${IOC_BINARY} ${IOC_STARTUP_DIR}/st.cmd.Linux"
+IOC_CMD="${IOC_STARTUP_DIR}/../../bin/${EPICS_HOST_ARCH}/${IOC_BINARY} ${IOC_STARTUP_DIR}/st.cmd.Linux"
 
 screenpid() {
         if [ -z ${SCREEN_PID} ] ; then
-- 
GitLab