]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Default start action on kvmx_xpra
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 1 Apr 2017 20:48:26 +0000 (17:48 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 1 Apr 2017 20:48:26 +0000 (17:48 -0300)
kvmx

diff --git a/kvmx b/kvmx
index aa3fd3cd81d11bc326b4fa47278419bf26ff75f0..54f72fbbd6b7b4003431f7308fa8319983c49885 100755 (executable)
--- 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 $*
 }