initial copy from github

inital move from github
This commit is contained in:
kake26 2021-05-17 01:06:15 +02:00
parent 97561de3c3
commit 9fcb60b769
4 changed files with 65 additions and 1 deletions

19
cpuwrangler.bash Normal file
View 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