#!/bin/sh set -e if [ "$2" = "suspend" ] || [ "$2" = "hybrid-sleep" ]; then case "$1" in pre) /usr/bin/python3 /home/will/Denon-Commands/poweroff.py ;; post) /usr/bin/python3 /home/will/Denon-Commands/poweron.py ;; esac fi