initial copy from github
inital move from github
This commit is contained in:
parent
97561de3c3
commit
9fcb60b769
4 changed files with 65 additions and 1 deletions
19
cpuwrangler.bash
Normal file
19
cpuwrangler.bash
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Some variables
|
||||
|
||||
$sysdu = "" # location to pull the systemd unit from github
|
||||
$cur_gov = $(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
|
||||
$cpugov = "conservative" # set what you want here
|
||||
|
||||
# First, are running as root?
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Default action is to reapply settings
|
||||
|
||||
echo "$cpugov" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue