CrunchBang Linux Pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

CrunchBang Linux Pastebin

Posted by jmbarnes on Thu 5th Aug 21:12 (modification of post by view diff)
download | new post

  1. #!/bin/sh
  2. # Ensure any custom vids in /etc/init.d/phc are being applied
  3. # after suspend / resume cycle
  4.  
  5. . "${PM_FUNCTIONS}"
  6.  
  7. [ -d /sys/devices/system/cpu/ ] || exit $NA
  8.  
  9. hibernate_cpuphc()
  10. {
  11. /etc/init.d/phc stop
  12. }
  13.  
  14. thaw_cpuphc()
  15. {
  16. /etc/init.d/phc start
  17. }
  18.  
  19. case "$1" in
  20. suspend|hibernate)
  21. hibernate_cpuphc
  22. ;;
  23. resume|thaw)
  24. thaw_cpuphc
  25. ;;
  26. *) exit $NA
  27. ;;
  28. esac

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me