aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-10 12:06:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-10 12:06:31 -0300
commit3d4b9ed3853e6332754cb8e157d0f9f601e7ed2b (patch)
treef1b69f97873b74b060a774a530ab82d5660e9471
parentfca47fd474977b33af7e081808e20b750ba7467b (diff)
downloadkvmx-3d4b9ed3853e6332754cb8e157d0f9f601e7ed2b.tar.gz
kvmx-3d4b9ed3853e6332754cb8e157d0f9f601e7ed2b.tar.bz2
Adds log action
-rwxr-xr-xkvmx7
1 files changed, 7 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index d15ca22..8af9a57 100755
--- a/kvmx
+++ b/kvmx
@@ -410,6 +410,13 @@ function kvmx_status {
fi
}
+# Print guest log
+function kvmx_log {
+ if [ -e "$LOGFILE" ]; then
+ cat $LOGFILE
+ fi
+}
+
# Dispatch
if type kvmx_$ACTION 2> /dev/null | grep -q 'function'; then
kvmx_initialize