From 4ebe88aaf3e13e7e49c5277f8dd821dd3eb6a52c Mon Sep 17 00:00:00 2001
From: Erik Kooistra <kooistra@astron.nl>
Date: Fri, 3 Nov 2017 14:11:52 +0000
Subject: [PATCH] Support --opt noflash option to overrule automatic flash
 detection.

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

diff --git a/applications/apertif/commissioning/central_commands.sh b/applications/apertif/commissioning/central_commands.sh
index 43fb2e7e5c..e6172a48b2 100755
--- a/applications/apertif/commissioning/central_commands.sh
+++ b/applications/apertif/commissioning/central_commands.sh
@@ -147,7 +147,10 @@ echo -n "Image $IMAGE_RBFNAME found running on $ACT_IMAGE processing nodes: "
 NOF_UNIBOARDS=$(echo $UNBS, | grep -o ',' | wc -l)
 NOF_REQUIRED_MATCHING_IMAGES=$(($NOF_UNIBOARDS * 8))
 
-if [ "$ACT_IMAGE" == "$NOF_REQUIRED_MATCHING_IMAGES" ]; then
+if [ "$OPTIONS" == "noflash" ]; then
+    echo Continuing without processing node reflash due to noflash option
+    FLASH=FALSE
+elif [ "$ACT_IMAGE" == "$NOF_REQUIRED_MATCHING_IMAGES" ]; then
     echo Continuing without processing node reflash
     FLASH=FALSE
 else
-- 
GitLab