mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
collectd: fix cpufreq plugin enable
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -92,7 +92,7 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable cpufreq plugin if cpufreq found
|
# 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
|
sed -i -e "s|^LoadPlugin cpufreq|#LoadPlugin cpufreq|g" /etc/collectd.conf
|
||||||
else
|
else
|
||||||
sed -i -e "s|^#LoadPlugin cpufreq|LoadPlugin cpufreq|g" /etc/collectd.conf
|
sed -i -e "s|^#LoadPlugin cpufreq|LoadPlugin cpufreq|g" /etc/collectd.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user