chore: Match to end of line in pstate fix

This commit is contained in:
Kyle Gospodnetich 2024-04-11 07:55:28 -07:00
parent 45a8e4ab6b
commit 26cf4cca32

View File

@ -248,7 +248,7 @@ fi
# NO-PSTATE FIX
if grep -q "acpi-cpufreq" <<< "$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver)"; then
sed -i 's/balanced=balanced/balanced=balanced-no-pstate/g' /etc/tuned/ppd.conf
sed -i 's/balanced=balanced$/balanced=balanced-no-pstate/g' /etc/tuned/ppd.conf
tuned-adm profile balanced-no-pstate
else
sed -i 's/balanced=balanced-no-pstate/balanced=balanced/g' /etc/tuned/ppd.conf