diff --git a/src/freedombone-image b/src/freedombone-image
index 4ac062f75989877a0bd03ef6e7bbce44c2ccea8a..6ea30283e062231339218a659435777f17536c9d 100755
--- a/src/freedombone-image
+++ b/src/freedombone-image
@@ -313,6 +313,11 @@ function mesh_router_setup_script {
       echo 'WIFI_CHANNEL=9'; } > "$mesh_script_filename"
 }
 
+if [[ $- != *i* ]]; then
+    echo $'The image command should be run within an interactive shell'
+    exit 975683
+fi
+
 while [ $# -gt 1 ]
 do
     key="$1"