]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/initscripts/system/collectd
collect: fix cpufreq graph on some machines.
[ipfire-2.x.git] / src / initscripts / system / collectd
index de52617a5d8f8d2291bfb70c5094c59d4ee579f7..1c685b44a86f6f1a83dc43b3ace83c8347185e1c 100644 (file)
@@ -92,7 +92,7 @@ case "$1" in
                fi
 
                # Enable cpufreq plugin if cpufreq found
-               if [ ! -e  /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq ]; then
+               if [ ! -e  /sys/devices/system/cpu/cpufreq/policy0/*_cur_freq ]; then
                        sed -i -e "s|^LoadPlugin cpufreq|#LoadPlugin cpufreq|g" /etc/collectd.conf
                else
                        sed -i -e "s|^#LoadPlugin cpufreq|LoadPlugin cpufreq|g" /etc/collectd.conf