Advertisement
oxhak

Unload / Load module

Apr 15th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  1. sudo gedit /etc/pm/sleep.d/10_bumblebee
  2.  
  3.  
  4.  
  5.     #!/bin/sh
  6.  
  7.      
  8.  
  9.     case "${1}" in
  10.  
  11.        hibernate|suspend)
  12.  
  13.             /etc/rc.d/bumblebeed stop
  14.  
  15.          ;;
  16.  
  17.        resume|thaw)
  18.  
  19.             /etc/rc.d/bumblebeed start
  20.  
  21.          ;;
  22.  
  23.     esac
  24.  
  25.  
  26.  
  27. sudo chmod a+x /etc/pm/sleep.d/10_bumblebee
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement