Source

homebin / throttle

Full commit
#!/bin/bash

# Quick and dirty, throttle two cpus using cpufreq

CMD="sudo cpufreq-set -rg"
GOVERNER="$1"


case $GOVERNER in
	s)
		$CMD powersave
		;;
	o)
		$CMD ondemand
		;;
	c)
		$CMD conservative
		;;
	p)
		$CMD performance
		;;
	*)
		$CMD $GOVERNER
		;;
	esac