diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2017-08-01 10:24:41 -0300 | 
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2017-08-01 10:24:41 -0300 | 
| commit | 7249f8ba3d4387c265c278d3d0cf1b1588eec9b9 (patch) | |
| tree | d70ea400834d20c677b977a221a24997fe1d1fc9 | |
| parent | 3a216c3d3fc12ddf9d6868b3b279e69601bd89bf (diff) | |
| download | kvmx-7249f8ba3d4387c265c278d3d0cf1b1588eec9b9.tar.gz kvmx-7249f8ba3d4387c265c278d3d0cf1b1588eec9b9.tar.bz2 | |
Run spice if run_spice_client is set and box already running
| -rwxr-xr-x | kvmx | 8 | 
1 files changed, 7 insertions, 1 deletions
| @@ -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 | 
