aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-06-02 10:43:19 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-06-02 10:43:19 -0300
commita4d27b50cf994c4a65ab28521e416f5ac734b73b (patch)
tree277e4a3b724c28ae463c90b7161d6ede3fdb395f
parentae845472f6aea3955d0893067d3ddc74880fa841 (diff)
downloadkvmx-a4d27b50cf994c4a65ab28521e416f5ac734b73b.tar.gz
kvmx-a4d27b50cf994c4a65ab28521e416f5ac734b73b.tar.bz2
Verbosity according to action ant kvmx_xephyr_stop
-rwxr-xr-xkvmx8
1 files changed, 6 insertions, 2 deletions
diff --git a/kvmx b/kvmx
index 86d4897..9542249 100755
--- 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`"