T1279: support ACPI power event (poweroff)

This commit is contained in:
Christian Poessinger 2019-03-22 11:45:36 +01:00
parent 43045e721c
commit cd9e810b16

View File

@ -0,0 +1,10 @@
#!/bin/sh
# To be able to properly shutdown bare-metal servers install and
# configure acpid
apt-get -y install acpid
cat <<EOF > /etc/acpi/events/powerbtn
event=button[ /]power
action=/sbin/poweroff
EOF