2011-02-04 05:32:30 -06:00
|
|
|
#!/bin/bash
|
2010-12-13 08:00:40 -06:00
|
|
|
|
2012-01-02 16:09:26 -06:00
|
|
|
#scriptPath="$BASH_ARGV[0]"
|
|
|
|
scriptPath="/soc/coriolis2/etc/coriolis2/coriolis2.sh"
|
2011-02-09 09:47:27 -06:00
|
|
|
|
2011-02-09 10:40:49 -06:00
|
|
|
if [ -h "${scriptPath}" ]; then
|
2011-02-09 09:47:27 -06:00
|
|
|
while [ -h "${scriptPath}" ]; do scriptPath=`readlink "${scriptPath}"`; done
|
|
|
|
fi
|
|
|
|
|
|
|
|
pushd . > /dev/null
|
|
|
|
cd `dirname ${scriptPath}` > /dev/null
|
|
|
|
sysconfDir=`pwd`;
|
|
|
|
popd > /dev/null
|
|
|
|
|
|
|
|
coriolisEnvPy="${sysconfDir}/coriolisEnv.py"
|
2011-02-09 10:40:49 -06:00
|
|
|
echo $coriolisEnvPy
|
2011-02-09 09:47:27 -06:00
|
|
|
|
|
|
|
if [ -e ${coriolisEnvPy} ]; then
|
|
|
|
eval "`${coriolisEnvPy} --v2 --release --shared --python`"
|
2010-12-13 08:00:40 -06:00
|
|
|
else
|
2011-02-09 09:47:27 -06:00
|
|
|
echo "[ERROR] Missing ${coriolisEnvPy} script."
|
2010-12-13 08:00:40 -06:00
|
|
|
fi
|
2011-02-09 11:00:36 -06:00
|
|
|
|
|
|
|
unset scriptPath sysconfDir coriolisEnvPy
|