Advertisement
Guest User

Untitled

a guest
Mar 13th, 2017
9,801
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.19 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. if [ "$2" = "suspend" ] || [ "$2" = "hybrid-sleep" ]; then
  6.     case "$1" in
  7.         pre) true ;;
  8.         post) sleep 1 && service network-manager restart ;;
  9.     esac
  10. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement