From af457d3a531899959b4979f758d5d2314ef7660a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 16 Jan 2024 11:57:39 -0600 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/powerwall.sh b/powerwall.sh index 5f2c16f3..a0795ee2 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -168,6 +168,7 @@ MAINT_MODE_VERIFY_SHUTDOWN(){ MaintMode=$(ssh -q -o ConnectTimeout=1 -o ConnectionAttempts=1 root@${ESXIHOST} 'esxcli system maintenanceMode get') done ssh -q -o ConnectTimeout=1 -o ConnectionAttempts=1 root@${ESXIHOST} 'esxcli system shutdown poweroff -d 10 -r "Power-Monitor script initiated system shutdown"' + sleep 4s ssh -q -o ConnectTimeout=1 -o ConnectionAttempts=1 root@${ESXIHOST} 'esxcli system maintenanceMode set -e false -t 0' }