Skip to content

Instantly share code, notes, and snippets.

@sjustesen
Last active January 20, 2024 11:10
Show Gist options
  • Save sjustesen/8d9d405f9bc1bc6ba33a7482e22aff19 to your computer and use it in GitHub Desktop.
Save sjustesen/8d9d405f9bc1bc6ba33a7482e22aff19 to your computer and use it in GitHub Desktop.
[Unit]
Description=Disable CPU boost at boot
# After networking because we need that
After=network.target
[Service]
Type=simple
User=root
ExecStart=/bin/bash -c "echo 0 | tee /sys/devices/system/cpu/cpufreq/boost"
[Install]
# Start the service before we get to multi-user mode
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment