diff options
Diffstat (limited to 'data/live-build-config/hooks')
-rwxr-xr-x | data/live-build-config/hooks/live/14-acpid.chroot | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/data/live-build-config/hooks/live/14-acpid.chroot b/data/live-build-config/hooks/live/14-acpid.chroot new file mode 100755 index 00000000..98b45649 --- /dev/null +++ b/data/live-build-config/hooks/live/14-acpid.chroot @@ -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 |