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 @@
. /etc/advligorts/env
sys="$1"
if [ -z "$sys" ] ; then
echo "usage: $(basename $0) <sys>"
echo "usage: $(basename $0) <sys>" >&2
exit 1
fi
# add
if [[ $sys == *iop* ]] ; then
rate=${AWG_IOP_RATE:=-4}
if [ -z "$SITE" ] ; then
echo "SITE variable not specified." >&2
exit 2
fi
exec awgtpman \
-s $sys \
$rate
if [ -z "$IFO" ] ; then
echo "IFO variable not specified." >&2
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