From 8640a0207f0361a0a111c6631f486e184017ae58 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 10 Apr 2023 21:13:56 +0200 Subject: [PATCH] Allow for gracefull shutdows --- power.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/power.sh b/power.sh index 38a11de..88d18bc 100644 --- a/power.sh +++ b/power.sh @@ -36,7 +36,7 @@ _graceful_shutdown(){ # Don't send the powerdown signal because Synology ignores it # echo 'system_powerdown' | nc -q 1 -w 1 localhost "${QEMU_MONPORT}">/dev/null - if (($AGENT_VERSION < 2)); then + if ((AGENT_VERSION < 2)); then echo "Please update the agent to allow gracefull shutdowns..." pkill -f qemu-system-x86_64 else