collectd: move cpufreq plugin init because arm has no cpufrequtils

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2018-05-30 11:30:01 +02:00
parent 5e1f3a9cbc
commit 6cc7c2a3d0
3 changed files with 9 additions and 7 deletions

View File

@@ -41,8 +41,6 @@ case "${1}" in
case "$driver" in
intel_pstate)
# pstate use internal gov so skip this setting
# activate cpufreq collectd module
sed -i -e "s|^#LoadPlugin cpufreq|LoadPlugin cpufreq|g" /etc/collectd.conf
echo_ok;
;;
*)
@@ -51,9 +49,6 @@ case "${1}" in
# Set the governor to ondemand to test if it works
cpufreq-set -g ondemand
if [ ${?} = 0 ]; then
# activate cpufreq collectd module
sed -i -e "s|^#LoadPlugin cpufreq|LoadPlugin cpufreq|g" /etc/collectd.conf
# Set the governor to ondemand for all cpus
for i in `seq 0 $CPUCOUNT`;
do