From: Arne Fitzenreiter Date: Sat, 2 Aug 2008 18:46:51 +0000 (+0200) Subject: Initscript of cpufreq now detect the needen modules X-Git-Tag: v2.3-beta3~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a041a28d118aa3ef3296b551e607a53a4913b7cc;p=ipfire-2.x.git Initscript of cpufreq now detect the needen modules Change the lines on cpu freq graph --- diff --git a/config/cfgroot/graphs.pl b/config/cfgroot/graphs.pl index b305dd59a4..d185a4b80c 100644 --- a/config/cfgroot/graphs.pl +++ b/config/cfgroot/graphs.pl @@ -209,13 +209,13 @@ sub updatecpufreqgraph { if ( -e "$rrdlog/collectd/localhost/cpufreq/cpufreq-1.rrd" ){ - push(@command,"LINE1:cpu1".$color{"color11"}."A0:1", + push(@command,"LINE3:cpu1".$color{"color12"}."A0:1", "GPRINT:cpu1:MAX:%3.0lf Mhz", "GPRINT:cpu1:AVERAGE:%3.0lf Mhz", "GPRINT:cpu1:MIN:%3.0lf Mhz", "GPRINT:cpu1:LAST:%3.0lf Mhz\\j",); } - push(@command,"LINE2:cpu0".$color{"color12"}."A1:0", + push(@command,"LINE2:cpu0".$color{"color11"}."A1:0", "GPRINT:cpu0:MAX:%3.0lf Mhz", "GPRINT:cpu0:AVERAGE:%3.0lf Mhz", "GPRINT:cpu0:MIN:%3.0lf Mhz", diff --git a/src/initscripts/init.d/cpufreq b/src/initscripts/init.d/cpufreq index e15037caf0..fb326d7eb0 100644 --- a/src/initscripts/init.d/cpufreq +++ b/src/initscripts/init.d/cpufreq @@ -17,24 +17,18 @@ case "${1}" in start) - boot_mesg "Starting cpufreq ..." - # Chose your cpufreq module, acpi-cpufreq should work with - # newer hardware - modprobe acpi-cpufreq - # modprobe cpufreq-nforce2 - # modprobe e-powersaver - # modprobe gx-suspmod - # modprobe longhaul - # modprobe longrun - # modprobe p4-clockmod - # modprobe powernow-k6 - # modprobe powernow-k7 - # modprobe powernow-k8 - # modprobe speedstep-centrino - # modprobe speedstep-ich - # modprobe speedstep-lib - # modprobe speedstep-smi - + boot_mesg -n "Starting cpufreq ... " + + for module in acpi-cpufreq cpufreq-nforce2 e-powersaver \ + gx-suspmod longhaul longrun p4-clockmod powernow-k6 \ + powernow-k7 powernow-k8 speedstep-centrino speedstep-ich \ + speedstep-smi; do + modprobe $module > /dev/null 2>&1; + if [ ${?} = 0 ]; then + boot_mesg -n "$SUCCESS$module$NORMAL " + fi + done + boot_mesg "" # load cqufreq governors modprobe cpufreq_conservative modprobe cpufreq_ondemand