#!/bin/sh set -e if [ "$2" = "hibernate" ] || [ "$2" = "hybrid-sleep" ]; then case "$1" in post) systemd-run --no-block --service-type=oneshot /usr/lib/ec2-hibinit-agent/hibinit-resume ;; esac fi