]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/cpufreq
Add system.cgi to updater
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / cpufreq
1 #!/bin/sh
2 ########################################################################
3 # Begin $rc_base/init.d/cpufreq
4 #
5 # Description : Initalisize and startup cpufreq and set a governor
6 #
7 # Authors : Arne Fitzenreiter - arne_f@ipfire.org
8 #
9 # Version : 00.00
10 #
11 # Notes :
12 #
13 ########################################################################
14
15 . /etc/sysconfig/rc
16 . ${rc_functions}
17
18 case "${1}" in
19 start)
20 boot_mesg "Starting cpufreq ..."
21 # Chose your cpufreq module, acpi-cpufreq should work with
22 # newer hardware
23 modprobe acpi-cpufreq
24 # modprobe cpufreq-nforce2
25 # modprobe e-powersaver
26 # modprobe gx-suspmod
27 # modprobe longhaul
28 # modprobe longrun
29 # modprobe p4-clockmod
30 # modprobe powernow-k6
31 # modprobe powernow-k7
32 # modprobe powernow-k8
33 # modprobe speedstep-centrino
34 # modprobe speedstep-ich
35 # modprobe speedstep-lib
36 # modprobe speedstep-smi
37
38 # load cqufreq governors
39 modprobe cpufreq_conservative
40 modprobe cpufreq_ondemand
41 modprobe cpufreq_powersave
42 modprobe cpufreq_userspace
43
44 # Set the governor to ondemand
45 cpufreq-set -g ondemand
46 evaluate_retval;
47
48 # activate cpufreq collectd module
49 sed -i -e "s|#LoadPlugin cpufreq|LoadPlugin cpufreq|g" /etc/collectd.conf
50
51 exit 0;
52 ;;
53 *)
54 echo "Usage: ${0} {start}"
55 exit 1
56 ;;
57 esac
58
59 # End $rc_base/init.d/cpufreq