aboutsummaryrefslogtreecommitdiff
path: root/kvmx
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-06 20:20:16 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-10-06 20:20:16 -0300
commit3cef0284b124696938645e11eae9a8ae2def9e60 (patch)
tree298f1c0f12c6e5a3c293385e06563b4082885223 /kvmx
parent789bd411ba3aaf4a48d461f60d6f2bca8c2dc687 (diff)
downloadkvmx-3cef0284b124696938645e11eae9a8ae2def9e60.tar.gz
kvmx-3cef0284b124696938645e11eae9a8ae2def9e60.tar.bz2
Check if VM is running at kvmx_install
Diffstat (limited to 'kvmx')
-rwxr-xr-xkvmx5
1 files changed, 5 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 0b8dc14..64746a3 100755
--- a/kvmx
+++ b/kvmx
@@ -1298,6 +1298,11 @@ function kvmx_mv {
# Install system
function kvmx_install {
+ if kvmx_running; then
+ echo "$BASENAME: guest $VM is running"
+ exit 1
+ fi
+
local media="$3"
if [ -z "$media" ]; then