Skip to content

Instantly share code, notes, and snippets.

/-

Created January 3, 2016 12:46
Show Gist options
  • Select an option

  • Save anonymous/bd0cfd34e358d8b82515 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/bd0cfd34e358d8b82515 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Jan 3, 2016.
    13 changes: 13 additions & 0 deletions -
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    #!/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