]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Wait before starting new machines
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 2 Apr 2017 12:03:23 +0000 (09:03 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 2 Apr 2017 12:03:23 +0000 (09:03 -0300)
kvmx

diff --git a/kvmx b/kvmx
index a723a2dbac61a1018f293fee8eebb235c9821049..9fe12889988fed7be3fdda33fc5e2ceb897db62c 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -256,10 +256,18 @@ function kvmx_up {
           # Re-evaluate this if there's a custom SSH key.
           __kvmx_ssh_command $basekey
         fi
+
+        local wait="y"
       fi
     else
+      local wait="y"
       kvmx-create $GLOBAL_USER_CONFIG_FOLDER/$VM
     fi
+
+    if [ "$wait" == "y" ]; then
+      echo "Waiting before starting the new guest..."
+      sleep 5
+    fi
   fi
 
   if [ -z "$graphics" ]; then