summaryrefslogtreecommitdiff
path: root/x11-drivers/nvidia-drivers/files/system-sleep.elogind
blob: d36e2697b86cc316cee871acc1cb7c826368c3c3 (plain)
1
2
3
4
5
6
7
#!/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