Skip to content

Instantly share code, notes, and snippets.

@AyumuKasuga
Created August 27, 2017 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AyumuKasuga/f5452b54002c31edf4190c548f1bd3c2 to your computer and use it in GitHub Desktop.
Save AyumuKasuga/f5452b54002c31edf4190c548f1bd3c2 to your computer and use it in GitHub Desktop.
/etc/systemd/system/wifi-resume.service
#/etc/systemd/system/wifi-resume.service
#sudo systemctl enable wifi-resume.service
[Unit]
Description=Restart networkmanager at resume
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target
[Service]
Type=oneshot
ExecStart=/bin/systemctl restart network-manager.service
[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment