diff options
author | root <root@rshg054.dnsready.net> | 2013-02-10 01:12:52 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-02-10 01:12:52 -0800 |
commit | 1bb2648cde916ac27d3dd75d7b64a4ddc89787b7 (patch) | |
tree | 016bfa1969323404c37dbef29cfc7242a5a8e9f3 /community/linux-tools | |
parent | e9c244cac8e5dc1c59c7e8b7bc885fef04224b70 (diff) |
Sun Feb 10 01:12:35 PST 2013
Diffstat (limited to 'community/linux-tools')
-rw-r--r-- | community/linux-tools/cpupower.conf | 29 | ||||
-rw-r--r-- | community/linux-tools/cpupower.pmutils | 37 | ||||
-rw-r--r-- | community/linux-tools/cpupower.rc | 16 | ||||
-rw-r--r-- | community/linux-tools/usbipd.conf | 3 | ||||
-rw-r--r-- | community/linux-tools/usbipd.rc | 34 |
5 files changed, 0 insertions, 119 deletions
diff --git a/community/linux-tools/cpupower.conf b/community/linux-tools/cpupower.conf deleted file mode 100644 index b5c522ea1..000000000 --- a/community/linux-tools/cpupower.conf +++ /dev/null @@ -1,29 +0,0 @@ -# Define CPUs governor -# valid governors: ondemand, performance, powersave, conservative, userspace. -#governor='ondemand' - -# Limit frequency range -# Valid suffixes: Hz, kHz (default), MHz, GHz, THz -#min_freq="2.25GHz" -#max_freq="3GHz" - -# Specific frequency to be set. -# Requires userspace governor to be available. -# Do not set governor field if you use this one. -#freq= - -# Utilizes cores in one processor package/socket first before processes are -# scheduled to other processor packages/sockets. -# See man (1) CPUPOWER-SET for additional details. -#mc_scheduler= - -# Utilizes thread siblings of one processor core first before processes are -# scheduled to other cores. See man (1) CPUPOWER-SET for additional details. -#smp_scheduler= - -# Sets a register on supported Intel processore which allows software to convey -# its policy for the relative importance of performance versus energy savings to -# the processor. See man (1) CPUPOWER-SET for additional details. -#perf_bias= - -# vim:set ts=2 sw=2 ft=sh et: diff --git a/community/linux-tools/cpupower.pmutils b/community/linux-tools/cpupower.pmutils deleted file mode 100644 index fb93cd7c1..000000000 --- a/community/linux-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: diff --git a/community/linux-tools/cpupower.rc b/community/linux-tools/cpupower.rc deleted file mode 100644 index 88edaf791..000000000 --- a/community/linux-tools/cpupower.rc +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -case "$1" in - start|restart) - status 'Setting cpupower rules' /usr/lib/systemd/scripts/cpupower || exit 1 - ;; - *) - echo "usage: ${0##*/} {start|restart}" >&2 - exit 1 - ;; -esac - -# vim:set ts=2 sw=2 ft=sh et: diff --git a/community/linux-tools/usbipd.conf b/community/linux-tools/usbipd.conf deleted file mode 100644 index 5990b857a..000000000 --- a/community/linux-tools/usbipd.conf +++ /dev/null @@ -1,3 +0,0 @@ -# vim:set ts=2 sw=2 ft=sh noet: - -DAEMON_OPTS='' diff --git a/community/linux-tools/usbipd.rc b/community/linux-tools/usbipd.rc deleted file mode 100644 index 15a1bcf00..000000000 --- a/community/linux-tools/usbipd.rc +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions -. /etc/conf.d/${0##*/} - -DAEMON=/usr/sbin/usbipd -PID=$(pidof -o %PPID $DAEMON) -DAEMON_OPTS="--daemon $DAEMON_OPTS" - -case "$1" in - start) - stat_busy "Starting ${0##*/} daemon" - [[ ! $PID ]] && $DAEMON $DAEMON_OPTS && add_daemon ${0##*/} && stat_done && exit 0 - stat_fail - ;; - stop) - stat_busy "Stopping ${0##*/} daemon" - [[ $PID ]] && kill $PID &> /dev/null && rm_daemon ${0##*/} && stat_done && exit 0 - stat_fail - ;; - restart) - $0 stop - $0 start - exit 0 - ;; - *) - echo "usage: ${0##*/} {start|stop|restart}" >&2 - ;; -esac - -exit 1 - -# vim:set ts=2 sw=2 ft=sh et: |