aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-06 17:03:02 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-06 17:03:02 -0300
commit180a08968334dfa2ef44b51a522cc2605b9226d4 (patch)
tree100b11dd103da7e6bf4349cf801cb87f2e3d11f8
parent44c3fcb590489ffef465f437e75ac9351fa8c5a4 (diff)
downloadvbox-180a08968334dfa2ef44b51a522cc2605b9226d4.tar.gz
vbox-180a08968334dfa2ef44b51a522cc2605b9226d4.tar.bz2
Accept commands on kvmx ssh action
-rwxr-xr-xkvmx3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index f1b3c24..b12eb77 100755
--- 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"