summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-03-22 11:45:36 +0100
committerChristian Poessinger <christian@poessinger.com>2019-03-22 11:45:36 +0100
commitcd9e810b1665b070484f93a8dc8a616b34a8861b (patch)
treefd1493ebbd58b46ed5b95977a1320c6bd0077875 /data
parent43045e721c589fbfbf121c33affebef4777a3cf6 (diff)
downloadvyos-build-cd9e810b1665b070484f93a8dc8a616b34a8861b.tar.gz
vyos-build-cd9e810b1665b070484f93a8dc8a616b34a8861b.zip
T1279: support ACPI power event (poweroff)
Diffstat (limited to 'data')
-rwxr-xr-xdata/live-build-config/hooks/live/14-acpid.chroot10
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