cpufrequtils: hide output on disabled cores.

We disable cores if the are affected by some cpu vulnerabilities
this cores report errors if you try to change the settings.
So only print the output for core0 and hide it for all cores.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2024-02-18 11:38:29 +01:00
parent 5a1b6efa00
commit 7275d72be3
2 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ case "${1}" in
# Set the governor to ondemand for all cpus
for i in `seq 0 $CPUCOUNT`;
do
cpufreq-set -c $i -g $GOV
cpufreq-set -c $i -g $GOV > /dev/null
done
echo_ok;
else