]> gitweb.fluxo.info Git - kvmx.git/commitdiff
SSH: bring machine up also if it is suspended
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 13 Jun 2018 16:37:51 +0000 (13:37 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 13 Jun 2018 16:37:51 +0000 (13:37 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 826c22394460e8fbadbf145e2db02911efe06ab0..74cc169603e7c2a7ebed27f0ab322c909cac8e76 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -620,7 +620,8 @@ function kvmx_usage {
 
 # Log into the guest using SSH
 function kvmx_ssh {
-  if ! kvmx_running; then
+  if ! kvmx_running || kvmx_suspended; then
+    echo "$BASENAME: $VM was not running, trying to start it..."
     kvmx up $VM || exit 1
     #kvmx_up || exit 1
     #echo "$BASENAME: guest $VM is not running"