From 3fc3be44e252f4388bbc90f93e34fc0f6d756981 Mon Sep 17 00:00:00 2001 From: cyteen Date: Mon, 16 Mar 2026 00:53:15 +0000 Subject: [PATCH] Add sudo. --- cpuscaling-ignore_ppc.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpuscaling-ignore_ppc.sh b/cpuscaling-ignore_ppc.sh index fd8a8e7..0bdf822 100644 --- a/cpuscaling-ignore_ppc.sh +++ b/cpuscaling-ignore_ppc.sh @@ -5,9 +5,9 @@ sudo apt-get install -y cpufrequtils linux-cpupower # Set ignore bios throttling on the kernel commandline #sed -i "s|^GRUB_CMDLINE_LINUX_DEFAULT=\"\(.*\)\"|GRUB_CMDLINE_LINUX_DEFAULT=\"\1 processor.ignore_ppc=1\"|" /etc/default/grub -#NEWARG="processor.ignore_ppc=1" -#sed -i -E "s|^(GRUB_CMDLINE_LINUX_DEFAULT=\"[^\"]*)\"|\1 ${NEWARG}\"|" /etc/default/grub -#update_grub +# NEWARG="processor.ignore_ppc=1" +# sudo sed -i -E "s|^(GRUB_CMDLINE_LINUX_DEFAULT=\"[^\"]*)\"|\1 ${NEWARG}\"|" /etc/default/grub +# sudo update_grub # get max available cpu frequency frequencies=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies)