Add sudo.
This commit is contained in:
parent
c97a391d87
commit
3fc3be44e2
|
|
@ -6,8 +6,8 @@ sudo apt-get install -y cpufrequtils linux-cpupower
|
||||||
#sed -i "s|^GRUB_CMDLINE_LINUX_DEFAULT=\"\(.*\)\"|GRUB_CMDLINE_LINUX_DEFAULT=\"\1 processor.ignore_ppc=1\"|" /etc/default/grub
|
#sed -i "s|^GRUB_CMDLINE_LINUX_DEFAULT=\"\(.*\)\"|GRUB_CMDLINE_LINUX_DEFAULT=\"\1 processor.ignore_ppc=1\"|" /etc/default/grub
|
||||||
|
|
||||||
# NEWARG="processor.ignore_ppc=1"
|
# NEWARG="processor.ignore_ppc=1"
|
||||||
#sed -i -E "s|^(GRUB_CMDLINE_LINUX_DEFAULT=\"[^\"]*)\"|\1 ${NEWARG}\"|" /etc/default/grub
|
# sudo sed -i -E "s|^(GRUB_CMDLINE_LINUX_DEFAULT=\"[^\"]*)\"|\1 ${NEWARG}\"|" /etc/default/grub
|
||||||
#update_grub
|
# sudo update_grub
|
||||||
|
|
||||||
# get max available cpu frequency
|
# get max available cpu frequency
|
||||||
frequencies=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies)
|
frequencies=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue