Add sudo.

This commit is contained in:
cyteen 2026-03-16 00:53:15 +00:00
parent c97a391d87
commit 3fc3be44e2
1 changed files with 3 additions and 3 deletions

View File

@ -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)