]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Initscript of cpufreq now detect the needen modules
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 2 Aug 2008 18:46:51 +0000 (20:46 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 2 Aug 2008 18:46:51 +0000 (20:46 +0200)
Change the lines on cpu freq graph

config/cfgroot/graphs.pl
src/initscripts/init.d/cpufreq

index b305dd59a4987382865df3dd455edd4d10e20e79..d185a4b80c14a43ea4bf860146086dea8eb7314e 100644 (file)
@@ -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",
index e15037caf0d047a05bb6ea35f3183ed6a5601a7b..fb326d7eb0b12809b5a22df5be182eedda9142bb 100644 (file)
 
 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