Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://it.toolbox.com/blogs/jeffhoogland/restarting-networkmanager-after-suspend-in-ubuntu-1604-091816
- To do this we create the file /etc/systemd/system/wifi-resume.service using our text editor of choice with the contents:
- [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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement