diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-03-22 11:45:36 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-03-22 11:45:36 +0100 |
commit | cd9e810b1665b070484f93a8dc8a616b34a8861b (patch) | |
tree | fd1493ebbd58b46ed5b95977a1320c6bd0077875 /data | |
parent | 43045e721c589fbfbf121c33affebef4777a3cf6 (diff) | |
download | vyos-build-cd9e810b1665b070484f93a8dc8a616b34a8861b.tar.gz vyos-build-cd9e810b1665b070484f93a8dc8a616b34a8861b.zip |
T1279: support ACPI power event (poweroff)
Diffstat (limited to 'data')
-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 |