From a444c62b5867b281e24c7f583ad2bd3e3d5fc430 Mon Sep 17 00:00:00 2001 From: xTechnoErikx Date: Wed, 25 May 2022 12:40:29 +0200 Subject: [PATCH] initial commit --- poweroff | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 poweroff diff --git a/poweroff b/poweroff new file mode 100755 index 0000000..00772a0 --- /dev/null +++ b/poweroff @@ -0,0 +1,12 @@ +#!/bin/bash + +tasks="(proxmox−backup−managertasklist−−output−formatjson)" +if["$tasks" == '[]' ] +then + sleep 300; + tasks="(proxmox−backup−managertasklist−−output−formatjson)"; + if["$tasks" == ’[]’ ] + then + shutdown now; + fi +fi