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:11 (modification of post by view diff)
download | new post

  1. #! /bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides:          phc
  4. # Required-Start:    $acpi
  5. # Required-Stop:
  6. # Default-Start:     2 3 4 5
  7. # Default-Stop:
  8. # Short-Description: linux-phc
  9. # Description:       linux-phc patched acpi-cpufreq module to allow
  10. #            custom vids (processor hardware control)
  11. ### END INIT INFO
  12. NAME=phc
  13. case "$1" in
  14.  
  15.   start)
  16.         ## Edit these next two lines ##
  17.         echo "26 21 19" > /sys/devices/system/cpu/cpu0/cpufreq/phc_vids
  18.         echo  "26 21 19" > /sys/devices/system/cpu/cpu1/cpufreq/phc_vids
  19.         ;;
  20.  
  21.   stop)
  22.         # No-op
  23.         ;;
  24.  
  25.   restart)
  26.         rmmod acpi-cpufreq
  27.         modprobe acpi-cpufreq
  28.         ## Edit these next two lines ##
  29.         echo "26 21 19" > /sys/devices/system/cpu/cpu0/cpufreq/phc_vids
  30.         echo "26 21 19" > /sys/devices/system/cpu/cpu1/cpufreq/phc_vids
  31.         ;;
  32.  
  33.   status)
  34.         ## Edit these next two lines ##
  35.         cat /sys/devices/system/cpu/cpu0/cpufreq/phc_vids
  36.         cat /sys/devices/system/cpu/cpu1/cpufreq/phc_vids
  37.         ;;
  38.  
  39.   *)
  40.         echo "Usage: $NAME start|stop|restart|status" >&2
  41.         exit 3
  42. #       ;;
  43. esac
  44.  
  45. exit 0

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