turboboost-disable/install.sh

32 lines
908 B
Bash

#!/bin/bash
#
# DISABLE INTEL CPU TURBOBOOST
#
# http://gg6zxtreajiijztyy5g6bt5o6l3qu32nrg7eulyemlhxwwl6enk6ghad.onion/RightToPrivacy/turboboost-disable.git
#
# if your computer is overheating, this could help
#
echo -e "INSTALLING TURBOBOOST DISABLE SERVICE...\n"
sudo cp turboctl /usr/bin && chmod 755 /usr/bin/turboctl
sudo cp turbo-disable.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable turbo-disable && {
sudo systemctl start turbo-disable && {
sleep .75
echo -e "TURBOBOOST DISABLED.\n"
}
}
sleep .5
echo -e "DONE.\n"
sleep .5
echo -e "DISABLING THIS SERVICE WILL ENABLE TURBOBOOST PERMANENTLY: \n"
sleep .75
echo -e "sudo systemctl disable turbo-disable && sudo systemctl stop turbo-disable\n"
sleep .75
echo -e "CHECK STATUS WITH: turboctl status\n"
echo -e "\nTURN OFF FOR THIS BOOT WITH: turboctl off\n"
echo -e "\nTURN ON FOR THIS BOOT WITH: turboctl on\n"