aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-04-01 17:48:26 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-04-01 17:48:26 -0300
commit62d8dd5ea3a23c0713e11b8121d223a96da7fffc (patch)
treefe4ed9b78ebaf3a186568e80e3712c331eba2949
parent982ca1e89a6c4014bf34273f6f42d140d35a4967 (diff)
downloadkvmx-62d8dd5ea3a23c0713e11b8121d223a96da7fffc.tar.gz
kvmx-62d8dd5ea3a23c0713e11b8121d223a96da7fffc.tar.bz2
Default start action on kvmx_xpra
-rwxr-xr-xkvmx4
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index aa3fd3c..54f72fb 100755
--- a/kvmx
+++ b/kvmx
@@ -763,6 +763,10 @@ function kvmx_xpra {
local action="$3"
shift 3
+ if [ -z "$action" ]; then
+ action="start"
+ fi
+
SSH="`cat $SSHFILE`"
xpra $action --ssh="$SSH_COMMAND -p $SSH" ssh:$SSH_LOGIN@127.0.0.1 $*
}