aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-04-02 09:03:23 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-04-02 09:03:23 -0300
commit03f94939b1405c9fffd690d764fc08106d88d8ca (patch)
tree4f5a1c8d4babace84a36f428966cb5ef6e7a5506
parent8e659f567492fbcb3411ba7b5012ad02728c457f (diff)
downloadkvmx-03f94939b1405c9fffd690d764fc08106d88d8ca.tar.gz
kvmx-03f94939b1405c9fffd690d764fc08106d88d8ca.tar.bz2
Wait before starting new machines
-rwxr-xr-xkvmx8
1 files changed, 8 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index a723a2d..9fe1288 100755
--- 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