Created
April 11, 2018 20:12
-
-
Save XaviTorello/3a0bd9be2c98e141b9206efae39f3c6d to your computer and use it in GitHub Desktop.
Surface Pro wireless network hibernation patch (place at /usr/lib/systemd/system-sleep/)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## Patch network hibernation issues | |
## Save it in /usr/lib/systemd/system-sleep | |
## Thanks to nivenly.com/surface-hib.sh | |
case $1/$2 in | |
pre/hibernate) | |
netctl stop $(netctl list |grep "wlp1s0-[a-zA-Z0-9]\+" -o) | |
echo "Going to $2..." | |
;; | |
post/hibernate) | |
echo "Waking up from $2..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment