mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
T1279: support ACPI power event (poweroff)
This commit is contained in:
parent
43045e721c
commit
cd9e810b16
10
data/live-build-config/hooks/live/14-acpid.chroot
Executable file
10
data/live-build-config/hooks/live/14-acpid.chroot
Executable 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
|
||||||
Loading…
x
Reference in New Issue
Block a user