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

case "$1" in
	hibernate|suspend)
	if [ `cat /sys/class/backlight/acpi_video0/brightness` == "0" ]
	then
		exit 1
	else
		exit 0
	fi
		;;
	thaw|resume) 
		#nothing to do
		;;
	*) exit $NA
		;;
esac
