# hooks addon of acpid if [ ! $TCOS_ACPID ]; then _verbose "(17acpi) TCOS_ACPI disabled" else stat_before manual_add_modules button cpifexists /usr/sbin/acpid /usr/sbin/ mkdir -p ${DESTDIR}/etc/acpi mkdir -p ${DESTDIR}/var/run cat << EOF > ${DESTDIR}/sbin/startacpid #!/bin/sh modprobe button /usr/sbin/acpid -c /etc/acpi EOF chmod +x ${DESTDIR}/sbin/startacpid cat << EOF > ${DESTDIR}/etc/acpi/button_event event=button[ /]power action=/sbin/poweroff EOF stat_after "ACPI daemon" fi # end of TCOS_ACPID