Commit bda4775c authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline

start_eiger_gui: add -x option to only start the receivers

parent 27a24a95
#!/bin/bash
as_root=0
[ -n "$1" ] && [ "$1" = "-r" ] && shift && as_root=1
only_receiver=0
while getopts rx opt_arg; do
case ${opt_arg} in
r) as_root=1;;
x) only_receiver=1;;
esac
done
if [ -z "${EIGER_DIR}" ]; then
if [ "$(id -un)" != 'root' ]; then
......@@ -11,8 +18,9 @@ if [ -z "${EIGER_DIR}" ]; then
. /etc/profile
PATH=$PATH:/users/blissadm/local/bin:/users/blissadm/bin export PATH
old_home=${HOME}
HOME=$(dirname $1)
. $1
setup_file="${!OPTIND}"
HOME=$(dirname ${setup_file})
. ${setup_file}
HOME=${old_home}
fi
......@@ -60,6 +68,11 @@ for m in ${EIGER_MODULES}; do
done
sleep 2
if [ ${only_receiver} -ne 0 ]; then
wait
exit 0
fi
hv_set=150
(sleep 10
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment