summaryrefslogtreecommitdiff
path: root/armbian-envtemp-cpufreq.sh
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-06-07 19:50:11 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-06-07 19:50:11 +0300
commitd056ab916d301e5f497075e0e235d274cb113b0a (patch)
tree17e3d864c8dfe2a359166356cf0c3c8af6a3fb9d /armbian-envtemp-cpufreq.sh
parentfe79a7d84bce908873534af27c07712cf2974d8e (diff)
write result to syslog instead of stdout
Diffstat (limited to 'armbian-envtemp-cpufreq.sh')
-rw-r--r--armbian-envtemp-cpufreq.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/armbian-envtemp-cpufreq.sh b/armbian-envtemp-cpufreq.sh
index e46d3c2..a4513ba 100644
--- a/armbian-envtemp-cpufreq.sh
+++ b/armbian-envtemp-cpufreq.sh
@@ -104,4 +104,4 @@ while read temp; do
done < <(for temp in ${!values[@]}; do echo $temp; done | sort -rn)
echo -n "$freq" > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
-echo "Environment temperature is $envtemp C, set max CPU frequency to $freq."
+logger -t "$(basename "$PROGNAME")" "Environment temperature is $envtemp C, set max CPU frequency to $freq."