#!/bin/bash hvbuild_post() { install -d -m755 /etc/acpi/events cat > /etc/acpi/events/button-lid << EOF # When the lid is closed, go into suspend to ram event=button/lid action=/etc/acpi/suspend2ram.sh EOF cat > /etc/acpi/events/button-power << EOF # When the power button is pressed, shutdown the system. event=button/power action=/etc/acpi/shutdown.sh EOF install -v -m755 ${SCRDIR}/misc/acpi/suspend2ram.sh /etc/acpi install -v -m755 ${SCRDIR}/misc/acpi/shutdown.sh /etc/acpi install -v -m740 ${SCRDIR}/bootscripts/acpid /etc/rc.d/init.d bootscript_add_rcsysinit acpid 65 90 }