Skip to content

Instantly share code, notes, and snippets.

@relthyg
Forked from anonymous/-
Created January 3, 2016 12:49
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 relthyg/c4bffceec84c11750601 to your computer and use it in GitHub Desktop.
Save relthyg/c4bffceec84c11750601 to your computer and use it in GitHub Desktop.
Restart Network Manager
#!/bin/sh
#
# Filename: /etc/pm/sleep.d/10_restart_network_manager
#
# Restarts Network Manager on resume from suspend.
# Useful if NM takes too long to find your wireless Network.
# Needs to be executable for root.
case $1 in
resume|thaw)
/bin/systemctl restart network-manager.service
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment