You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
396 B
12 lines
396 B
#!/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
|
|
|