Something went wrong on our end
-
Jameson Rollins authoredJameson Rollins authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
rts_module_ctrl 568 B
#!/bin/bash -e
. /etc/advligorts/env
cmd="$1"
sys="$2"
if [ -z "$sys" ] ; then
echo "usage: $(basename $0) start|stop <sys>" >&2
exit 1
fi
if [ -z "$SITE" ] ; then
echo "SITE variable not specified." >&2
exit 2
fi
if [ -z "$IFO" ] ; then
echo "IFO variable not specified." >&2
exit 2
fi
TARGET=/opt/rtcds/${SITE,,*}/${IFO,,*}
case $cmd in
start)
/sbin/insmod "$TARGET"/target/${sys}/bin/${sys}.ko
;;
stop)
/sbin/rmmod ${sys}
;;
*)
echo "unknown command '$cmd'"
exit 1
;;
esac