aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-04-08 09:28:10 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-04-08 09:28:10 -0300
commit1c5aad46f435c6ce7e2cc5ebe24ae202506ac706 (patch)
treef679f662cd366206bd514a2172e55c5e6a9df836
parent4fee4766a68532bf4d07bd898e3c09ca6f233640 (diff)
downloadkvmx-1c5aad46f435c6ce7e2cc5ebe24ae202506ac706.tar.gz
kvmx-1c5aad46f435c6ce7e2cc5ebe24ae202506ac706.tar.bz2
Adds missing run_xrpa evaluation
-rwxr-xr-xkvmx8
1 files changed, 8 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 44ecdd2..cf97b99 100755
--- a/kvmx
+++ b/kvmx
@@ -315,6 +315,10 @@ function kvmx_up {
kvmx_spice
fi
+ if [ "$run_xpra" == "1" ]; then
+ $DIRNAME/$BASENAME xpra $VM
+ fi
+
if [ "$ssh_support" == "y" ]; then
let ssh_attempts="0"
echo -n "Waiting for machine to boot..."
@@ -497,6 +501,10 @@ function kvmx_poweroff {
exit 1
fi
+ if [ "$run_xpra" == "1" ]; then
+ $DIRNAME/$BASENAME xpra $VM stop
+ fi
+
echo /usr/bin/sudo poweroff | kvmx_ssh &> /dev/null
sleep 3
kvmx_status