Created
February 18, 2016 10:06
-
-
Save mjyut/000ab3629e79de504bfc to your computer and use it in GitHub Desktop.
To enable wifi when returning from suspend (Xubuntu 15.10)
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 | |
# /lib/systemd/system-sleep/wifi-wakeup.sh | |
case $1 in | |
pre) | |
modprobe -r r8712u | |
;; | |
post) | |
modprobe r8712u | |
systemctl restart NetworkManager.service | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment