configs/roles/common/files/disable_usb_wake.service

13 lines
306 B
INI
Raw Permalink Normal View History

[Unit]
Description=Disable USB Mouse from waking
After=getty.target
[Service]
Type=oneshot
User=root
ExecStart=/usr/bin/bash -c "for i in $(cat /proc/acpi/wakeup| grep enabled | awk '{print $1}'| xargs); do echo $i | tee /proc/acpi/wakeup; done"
RemainAfterExit=true
[Install]
WantedBy=multi-user.target