mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +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
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user