]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Verbosity according to action ant kvmx_xephyr_stop
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 2 Jun 2017 13:43:19 +0000 (10:43 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 2 Jun 2017 13:43:19 +0000 (10:43 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 86d48977a4d2fd29ba0436f7100fac1157ca4422..9542249e00db13cb4da4559210f8f81ee5b8bb7f 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -1004,8 +1004,12 @@ function kvmx_xephyr {
 # Close Xephyr client
 function kvmx_xephyr_stop {
   if [ ! -e "$XEPHYRFILE" ]; then
-    echo "$BASENAME: Xephyr not running for guest $VM"
-    exit 1
+    if [ "$ACTION" == "xephyr_stop" ]; then
+      echo "$BASENAME: Xephyr not running for guest $VM"
+      exit 1
+    else
+      return
+    fi
   fi
 
   XEPHYRPID="`cat $XEPHYRFILE`"