#!/bin/sh
# Do not suspend when LCD is turned off

case "$1" in
	hibernate|suspend)
		if ! /usr/local/bin/xrun.sh /usr/local/bin/dpms.sh status
		then
			exit 1
		else
			exit 0
		fi
		;;
	thaw|resume) 
		#nothing to do
		;;
	*) exit $NA
		;;
esac
