Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. case "$1" in
  4. hibernate|suspend)
  5. ;;
  6. thaw|resume)
  7. vlock -ans
  8. ;;
  9. *) exit $NA
  10. ;;
  11. esac
  12.  
  13. # /etc/systemd/system/resume@.service
  14. [Unit]
  15. Description=User resume actions
  16. After=suspend.target
  17.  
  18. [Service]
  19. User=root
  20. Type=simple
  21. ExecStart=vlock -ans
  22.  
  23. [Install]
  24. WantedBy=suspend.target
  25.  
  26. /usr/lib64/pm-utils/pm-functions
  27. /usr/lib64/pm-utils/defaults
  28. /usr/lib64/pm-utils/module.d
  29. /etc/pm/config.d
  30. /etc/pm/pm-suspend.config.d
  31. /var/run/pm-utils/locks/pm-suspsnd.lock
  32. /var/run/pm-utils/pm-suspend/storage/parameters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement