2019-03-22 11:45:36 +01:00

11 lines
206 B
Bash
Executable File

#!/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