summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-emulation/kvm-init-script/files/kvm-init-script4
1 files changed, 2 insertions, 2 deletions
diff --git a/app-emulation/kvm-init-script/files/kvm-init-script b/app-emulation/kvm-init-script/files/kvm-init-script
index cfd35c2..9db1757 100644
--- a/app-emulation/kvm-init-script/files/kvm-init-script
+++ b/app-emulation/kvm-init-script/files/kvm-init-script
@@ -48,7 +48,7 @@ sanity_check() {
}
start() {
- sanity_check
+ sanity_check || return 1
img=$(readlink -f "${DISKIMAGE}")
[ -z "$img" ] && {
@@ -99,7 +99,7 @@ reboot() {
}
stop() {
- sanity_check
+ sanity_check || return 1
ebegin "Powering off ${VMNAME}"
send_command system_powerdown