summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2016-02-26 13:57:59 -0800
committerBrian Dolbec <dolsen@gentoo.org>2016-02-26 13:57:59 -0800
commit6d4b300fccb371ab4f0032cdfdd7d18ff24ea956 (patch)
tree88fc8a47f17c5d7ec0635c1ed5897f966ff9d4ab
parentAdd MACHINE, CPU, ENABLE_KVM options (diff)
downloadkvm-tools-6d4b300fccb371ab4f0032cdfdd7d18ff24ea956.tar.gz
kvm-tools-6d4b300fccb371ab4f0032cdfdd7d18ff24ea956.tar.bz2
kvm-tools-6d4b300fccb371ab4f0032cdfdd7d18ff24ea956.zip
TIMEOUT: remove duplicate default settings
Whenever this part of teh code runs, it has already been defauted. No need to default it again.
-rw-r--r--app-emulation/qemu-init-scripts/files/qemu-init-script4
1 files changed, 2 insertions, 2 deletions
diff --git a/app-emulation/qemu-init-scripts/files/qemu-init-script b/app-emulation/qemu-init-scripts/files/qemu-init-script
index 1ca9670..f8773c9 100644
--- a/app-emulation/qemu-init-scripts/files/qemu-init-script
+++ b/app-emulation/qemu-init-scripts/files/qemu-init-script
@@ -215,7 +215,7 @@ stop() {
send_command system_powerdown
eend $?
- ebegin "waiting up to ${TIMEOUT:-60} seconds for it to die"
+ ebegin "waiting up to ${TIMEOUT} seconds for it to die"
local pid
[ -s "${PIDFILE}" ] && pid=$(cat "${PIDFILE}")
if [ -z "$pid" ]; then
@@ -224,7 +224,7 @@ stop() {
eend 1
else
local ret=1
- for x in $(seq 0 ${TIMEOUT:-60}); do
+ for x in $(seq 0 ${TIMEOUT}); do
if kill -0 "${pid}" > /dev/null 2>&1; then
sleep 1s
continue