[systemd] found a better way so ditching these
This commit is contained in:
parent
dbba1c2539
commit
2fdb54ef53
2 changed files with 0 additions and 25 deletions
|
@ -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
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue