TE = "closed" ] ; then
if [ $PWR_STATE = "off-line" ] ; then
/sbin/fastshutdown... TE = "closed" ] ; then
if [ $PWR_STATE = "off-line" ] ; then
/etc/acpi/suspend2... .sh
fi
fi
exit 0
</code>
===== Shutting off screen =====
If you'd rather just shut the screen off to save power use
<code bash>
#!/bin/sh
LID_STAT