From 1c5aad46f435c6ce7e2cc5ebe24ae202506ac706 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 8 Apr 2017 09:28:10 -0300 Subject: Adds missing run_xrpa evaluation --- kvmx | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3