From: Arne Fitzenreiter Date: Fri, 3 Aug 2018 14:13:12 +0000 (+0200) Subject: collectd: fix cpufreq plugin enable X-Git-Tag: v2.21-core123~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79bcc6f769eff10558db6a2c5d7247e5ced508bb;p=people%2Fstevee%2Fipfire-2.x.git collectd: fix cpufreq plugin enable Signed-off-by: Arne Fitzenreiter --- diff --git a/src/initscripts/system/collectd b/src/initscripts/system/collectd index 1c685b44a8..cdb8693ae5 100644 --- a/src/initscripts/system/collectd +++ b/src/initscripts/system/collectd @@ -92,7 +92,7 @@ case "$1" in fi # Enable cpufreq plugin if cpufreq found - if [ ! -e /sys/devices/system/cpu/cpufreq/policy0/*_cur_freq ]; then + if [ ! -e /sys/devices/system/cpu/cpu0/cpufreq/scaling_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