2018-12-20 00:43:40 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "Installing undervolt packages"
|
2019-02-05 08:17:59 +00:00
|
|
|
sudo dnf install -y python-pip
|
2018-12-20 00:43:40 +00:00
|
|
|
sudo pip install undervolt
|
|
|
|
|
|
|
|
|
|
|
|
echo "Applying undervolt"
|
|
|
|
sudo cp _undervolt /etc/systemd/system/undervolt.service
|
2018-12-20 02:12:46 +00:00
|
|
|
sudo cp _undervolt_timer /etc/systemd/system/undervolt.timer
|
2018-12-20 00:43:40 +00:00
|
|
|
|
2018-12-20 02:12:46 +00:00
|
|
|
sudo systemctl enable undervolt.timer
|
|
|
|
sudo systemctl start undervolt.timer
|