#!/bin/sh
case ${1-} in
	pre)	nvidia-sleep.sh suspend;;
	# run in background given resume is flaky if elogind did not finish
	post)	nvidia-sleep.sh resume &;;
	*)	exit 1;;
esac