Add sudo.
This commit is contained in:
parent
c97a391d87
commit
3fc3be44e2
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue