aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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