From d58c65bf5bd8064403126fca3759a001a20fc4ef Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Tue, 15 Jan 2019 23:01:27 +0000
Subject: [PATCH] Combine onion and sata

---
 src/freedombone-image | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/freedombone-image b/src/freedombone-image
index 5e6fdac3e..cd5c1edd9 100755
--- a/src/freedombone-image
+++ b/src/freedombone-image
@@ -552,7 +552,11 @@ if [[ $ONION_ONLY != "no" ]]; then
 fi
 
 if [ "$EXTERNAL_DRIVE" ]; then
-    IMAGE_NAME=$'sata'
+    if [[ $ONION_ONLY == "no" ]]; then
+        IMAGE_NAME=$'sata'
+    else
+        IMAGE_NAME=$'onion-sata'
+    fi
 fi
 
 if [[ "$IMAGE_TYPE" == 'beagle'* ]]; then
-- 
GitLab