mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-09-18 00:52:55 +02:00
build
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Disable ACPI wakeup devices on shutdown
|
||||
DefaultDependencies=no
|
||||
|
||||
Before=shutdown.target reboot.target halt.target poweroff.target
|
||||
Conflicts=shutdown.target reboot.target halt.target poweroff.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/bin/true
|
||||
ExecStop={{ acpi_wakeup_script_path }}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -u
|
||||
|
||||
for device in $(awk '$3 == "enabled" {print $1}' /proc/acpi/wakeup); do
|
||||
echo "$device"
|
||||
echo "$device" > /proc/acpi/wakeup
|
||||
done
|
||||
Reference in New Issue
Block a user