[systemd] found a better way so ditching these

This commit is contained in:
Josh Sherman 2017-09-03 11:52:09 -05:00
parent dbba1c2539
commit 2fdb54ef53
No known key found for this signature in database
GPG key ID: 55B058A80530EF22
2 changed files with 0 additions and 25 deletions

View file

@ -1,11 +0,0 @@
#!/bin/env bash
#for device in EHC1 EHC2 XHC
for device in XHC1
do
if grep -q "$device.*enabled" /proc/acpi/wakeup
then
echo $device > /proc/acpi/wakeup
else
echo 'Already disabled!'
fi
done

View file

@ -1,14 +0,0 @@
[Unit]
Description=Disable USB Wakeup
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target
[Service]
Type=oneshot
ExecStart=/usr/bin/disable-usb-wakeup
[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target