summaryrefslogtreecommitdiff
path: root/libre/linux-libre-tools/cpupower.pmutils
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@adinet.com.uy>2012-09-06 01:56:10 -0300
committerMárcio Alexandre Silva Delgado <coadde@adinet.com.uy>2012-09-06 01:56:10 -0300
commitec0cb30ae401e68e0d79962a70652529f11ce953 (patch)
tree5c8b884b601b75e6d12cac6cffb8022719efd700 /libre/linux-libre-tools/cpupower.pmutils
parent904ac371bfacc6f6590d7d4dc7e80967f84ae103 (diff)
parent6226ae313260b3b93901017e618086b3c728a7c1 (diff)
downloadabslibre-ec0cb30ae401e68e0d79962a70652529f11ce953.tar.gz
abslibre-ec0cb30ae401e68e0d79962a70652529f11ce953.tar.bz2
abslibre-ec0cb30ae401e68e0d79962a70652529f11ce953.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/linux-libre-tools/cpupower.pmutils')
-rw-r--r--libre/linux-libre-tools/cpupower.pmutils37
1 files changed, 0 insertions, 37 deletions
diff --git a/libre/linux-libre-tools/cpupower.pmutils b/libre/linux-libre-tools/cpupower.pmutils
deleted file mode 100644
index fb93cd7c1..000000000
--- a/libre/linux-libre-tools/cpupower.pmutils
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-[[ -x /usr/bin/cpupower ]] || exit $NA
-
-CPUPOWER_GOVERNOR_AC=${CPUPOWER_GOVERNOR_AC:-ondemand}
-CPUPOWER_GOVERNOR_BAT=${CPUPOWER_GOVERNOR_BAT:-conservative}
-
-help() {
- cat <<EOF
---------
-$0: Select cpupower frequency governor.
-
-Parameters:
-CPUPOWER_GOVERNOR_AC = Governor to use on AC.
-Defaults to ondemand.
-
-CPUPOWER_GOVERNOR_BAT = Governor to use on battery.
-Defaults to conservative.
-
-EOF
-}
-
-cpupow() {
- printf 'Setting cpupower frequency governor to %s...' "$1"
- cpupower -c all frequency-set -g "$1"
-}
-
-case $1 in
- true) cpupow "$CPUPOWER_GOVERNOR_BAT" ;;
- false) cpupow "$CPUPOWER_GOVERNOR_AC" ;;
- help) help;;
- *) exit $NA ;;
-esac
-
-exit 0
-
-# vim:set ts=2 sw=2 ft=sh et: