mkimage-profiles/features.in/arm-rpi4/image-scripts.d/93-default-gouvernor-conservative
Anton Midyukov 5137e5ad9c Rename aarch64-rpi4 feature to arm-rpi4
The feature фкь-кзш4 is available for armh now.
2020-07-03 13:20:18 +07:00

13 lines
396 B
Bash
Executable File

#!/bin/sh -efu
# By default, in cpufreq-simple feature the ondemand governor is configured.
# But only the conservative governor is available at Raspberry Pi 4 kernels.
# This is change the default governor to conservative.
cfgfile="/etc/sysconfig/cpufreq-simple"
if [ -f "$cfgfile" ]
then
echo "GOVERNOR_AC_ON=conservative" >> "$cfgfile"
echo "GOVERNOR_AC_OFF=conservative" >> "$cfgfile"
fi