From 79bcc6f769eff10558db6a2c5d7247e5ced508bb Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Fri, 3 Aug 2018 16:13:12 +0200 Subject: [PATCH] collectd: fix cpufreq plugin enable Signed-off-by: Arne Fitzenreiter --- src/initscripts/system/collectd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5