mirror of
https://github.com/home-assistant/operating-system.git
synced 2026-02-15 07:29:08 +00:00
On systems where ACPI support is present as inidcated by the presence of /proc/acpi (e.g. on OVA compatible hypervisors), we want to properly shut down the system when the power button is pressed (or the hypervisor simulates this kind of event to the guest machine that executes hassos). This changeset provides the following basic infrastructure for this feature to work as expected: * a systemd service to start acpid, if ACPI support can be assumed * an acpid configuration directory * a trivial shutdown script to invoke when a PWR event is registered