From 327e6976753237a42dad26fbccbac7260f037069 Mon Sep 17 00:00:00 2001
From: Boudewijn Hut <hut@astron.nl>
Date: Fri, 3 Nov 2017 12:51:26 +0000
Subject: [PATCH] APP is checked to start with 'apertif', in certain if
 statements

---
 applications/apertif/commissioning/central_commands.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/applications/apertif/commissioning/central_commands.sh b/applications/apertif/commissioning/central_commands.sh
index 038d9a279a..43fb2e7e5c 100755
--- a/applications/apertif/commissioning/central_commands.sh
+++ b/applications/apertif/commissioning/central_commands.sh
@@ -319,7 +319,7 @@ fi
 # Set destination MAC/IP/Ports
 ###############################################################################
 UNBS2="${UNBS//,/ }"
-if [ $APP == "apertif" ]; then
+if [ ${APP:0:7} == "apertif" ]; then
     if [ "$DATAWRITER" == "wcudata1" ]; then
         DATAWRITER_ETH0_ETH_DST_MAC=$WCUDATA1_ETH0_ETH_DST_MAC
         DATAWRITER_ETH0_IP_DST_ADDR=$WCUDATA1_ETH0_IP_DST_ADDR
@@ -414,7 +414,7 @@ fi
 ###############################################################################
 # Enable output streams NOTE - temporary not outputting to ARTS0 (absent network)
 ###############################################################################
-if [ $APP == "apertif" ]; then
+if [ ${APP:0:7} == "apertif" ]; then
     # Enable all output of all correlator uniboards
     python $UPE/peripherals/util_dp_xonoff.py --unb $UNBS --fn 0:3 --bn 0:3 -s OUTPUT -n 2
 elif [ $APP == "arts_sc1" ]; then
-- 
GitLab