Skip to content

Instantly share code, notes, and snippets.

@mjyut
Created February 18, 2016 10:06
Show Gist options
  • Save mjyut/000ab3629e79de504bfc to your computer and use it in GitHub Desktop.
Save mjyut/000ab3629e79de504bfc to your computer and use it in GitHub Desktop.
To enable wifi when returning from suspend (Xubuntu 15.10)
#!/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