Skip to content
Snippets Groups Projects
Commit 3e9eb484 authored by Jameson Rollins's avatar Jameson Rollins
Browse files

support: update awgtpman wrapper script

updates awgtpman command line args, checks SITE/IFO exist, and exports
TARGET env var.
parent e57e132d
No related branches found
No related tags found
1 merge request!112support: update wrapper scripts to check SITE/IFO and export TARGET vars
...@@ -2,13 +2,16 @@ ...@@ -2,13 +2,16 @@
. /etc/advligorts/env . /etc/advligorts/env
sys="$1" sys="$1"
if [ -z "$sys" ] ; then if [ -z "$sys" ] ; then
echo "usage: $(basename $0) <sys>" echo "usage: $(basename $0) <sys>" >&2
exit 1 exit 1
fi fi
# add if [ -z "$SITE" ] ; then
if [[ $sys == *iop* ]] ; then echo "SITE variable not specified." >&2
rate=${AWG_IOP_RATE:=-4} exit 2
fi fi
exec awgtpman \ if [ -z "$IFO" ] ; then
-s $sys \ echo "IFO variable not specified." >&2
$rate exit 2
fi
export TARGET=${TARGET:=/opt/rtcds/${SITE,,*}/${IFO,,*}}
exec awgtpman -s $sys
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment