aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-08-01 10:24:41 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-08-01 10:24:41 -0300
commit7249f8ba3d4387c265c278d3d0cf1b1588eec9b9 (patch)
treed70ea400834d20c677b977a221a24997fe1d1fc9
parent3a216c3d3fc12ddf9d6868b3b279e69601bd89bf (diff)
downloadkvmx-7249f8ba3d4387c265c278d3d0cf1b1588eec9b9.tar.gz
kvmx-7249f8ba3d4387c265c278d3d0cf1b1588eec9b9.tar.bz2
Run spice if run_spice_client is set and box already running
-rwxr-xr-xkvmx8
1 files changed, 7 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index 463f892..a670f55 100755
--- a/kvmx
+++ b/kvmx
@@ -250,7 +250,13 @@ function kvmx_up {
exit
elif kvmx_running; then
echo "$BASENAME: guest $VM is already running"
- exit 1
+
+ if [ "$run_spice_client" == "1" ]; then
+ kvmx spice $VM
+ exit
+ else
+ exit 1
+ fi
fi
if [ ! -z "$shared_folder" ]; then