From bcfc58a870d8d46c206609301575f9dd9e500941 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 17 Apr 2023 04:46:07 +0200 Subject: [PATCH] Remove snore --- run/power.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/run/power.sh b/run/power.sh index df707d3..66c5ed6 100644 --- a/run/power.sh +++ b/run/power.sh @@ -19,13 +19,6 @@ _trap(){ done } -snore() -{ - local IFS - [[ -n "${_snore_fd:-}" ]] || exec {_snore_fd}<> <(:) - read ${1:+-t "$1"} -u $_snore_fd || : -} - _graceful_shutdown(){ local QEMU_MONPORT="${QEMU_MONPORT:-7100}" @@ -42,7 +35,7 @@ _graceful_shutdown(){ # echo 'system_powerdown' | nc -q 1 -w 1 localhost "${QEMU_MONPORT}">/dev/null # Send shutdown command to guest agent tools instead via serial port - RESPONSE=$(curl -s -m 3 -S http://127.0.0.1:2210/write?command=6) + RESPONSE=$(curl -s -m 2 -S http://127.0.0.1:2210/write?command=6) if [[ ! "${RESPONSE}" =~ "\"success\"" ]] ; then