]> gitweb.fluxo.info Git - vbox.git/commitdiff
Accept commands on kvmx ssh action
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 6 Mar 2017 20:03:02 +0000 (17:03 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 6 Mar 2017 20:03:02 +0000 (17:03 -0300)
kvmx

diff --git a/kvmx b/kvmx
index f1b3c24d18831b063247d53c32a938307c15a2bb..b12eb7782be72f72fe8454854242093f3836b0a5 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -99,8 +99,9 @@ elif [ "$ACTION" == "resume" ]; then
 elif [ "$ACTION" == "poweroff" ]; then
   echo TODO
 elif [ "$ACTION" == "ssh" ]; then
+  shift 2
   SSH="`cat $SSHFILE`"
-  $SSH_COMMAND -p $SSH $LOGIN@127.0.0.1
+  $SSH_COMMAND -p $SSH $LOGIN@127.0.0.1 $*
 elif [ "$ACTION" == "rsync" ]; then
   ORIG="$3"
   DEST="$4"