#!/bin/sh -e
# Automatically added by dh_installinit
if [ -x "/etc/init.d/tlp" ]; then
	update-rc.d tlp defaults 98 01 >/dev/null || exit $?
fi
# End automatically added section


# Disable conflicting pm-utils hooks
for i in 95hdparm-apm disable_wol hal-cd-polling intel-audio-powersave laptop-mode \
         journal-commit pcie_aspm sata_alpm sched-powersave wireless \
         xfs_buffer; do
    if [ -x /usr/lib/pm-utils/power.d/$i ]; then
        ln -sf /usr/lib/tlp-pm/tlp-nop /etc/pm/power.d/$i
    fi
done
