From 05d49ae4347bee996867eb9046cfd991d20d3295 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 18 Apr 2023 18:06:59 +0200 Subject: [PATCH] Agent --- run/power.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/run/power.sh b/run/power.sh index b49cc8a..7a567db 100644 --- a/run/power.sh +++ b/run/power.sh @@ -42,9 +42,8 @@ _graceful_shutdown(){ # If we cannot shutdown the usual way, fallback to the NMI method - AGENT_VERSION=1 AGENT="${STORAGE}/${BASE}.agent" - [ -f "$AGENT" ] && AGENT_VERSION=$(cat "${AGENT}") + [ -f "$AGENT" ] && AGENT_VERSION=$(cat "${AGENT}") || AGENT_VERSION=1 if ((AGENT_VERSION < 2)); then