#!/bin/sh

case "$1" in
    thaw|resume)
	LAPTOP_MODE=/usr/sbin/laptop_mode
	if [ -x $LAPTOP_MODE ]; then
	    [ -f /etc/default/laptop-mode ] && . /etc/default/laptop-mode
	    [ -f /etc/default/acpi-support ] && . /etc/default/acpi-support
	    if [ x$ENABLE_LAPTOP_MODE = xtrue ]; then
		$LAPTOP_MODE auto
	    fi
	fi
	;;
    *)
	;;
esac
