#!/bin/sh GOVERNOR='powersave' if [ "$1" ]; then GOVERNOR="$1" fi echo "$GOVERNOR" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor