Skip to content

Instantly share code, notes, and snippets.

/-

Created January 3, 2016 12:46
Show Gist options
  • Save anonymous/bd0cfd34e358d8b82515 to your computer and use it in GitHub Desktop.
Save anonymous/bd0cfd34e358d8b82515 to your computer and use it in GitHub Desktop.
#!/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