diff options
author | Brian Harring <ferringb@chromium.org> | 2012-04-13 22:14:53 -0700 |
---|---|---|
committer | Brian Harring <ferringb@chromium.org> | 2012-04-13 23:23:28 -0700 |
commit | 41bd783587d61b4ea4574f8d4c6e212ba5833018 (patch) | |
tree | 2d1ce5b7c4c5051f203b44c7647044ca94a846bc | |
parent | drop the README, instead add comments to the kvm init script (diff) | |
download | kvm-tools-41bd783587d61b4ea4574f8d4c6e212ba5833018.tar.gz kvm-tools-41bd783587d61b4ea4574f8d4c6e212ba5833018.tar.bz2 kvm-tools-41bd783587d61b4ea4574f8d4c6e212ba5833018.zip |
kvm-init-script: check the results of sanity_check.
-rw-r--r-- | app-emulation/kvm-init-script/files/kvm-init-script | 4 |
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 |