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