summaryrefslogtreecommitdiffstats
path: root/sysutils/estctrl/files
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2004-09-02 04:16:40 +0000
committeredwin <edwin@FreeBSD.org>2004-09-02 04:16:40 +0000
commitaea3a16fa29823b402d43be4dc8f7a39dd991c03 (patch)
tree4e82bbc560e3a3a05fc6aafbe37a402da1ed9d50 /sysutils/estctrl/files
parent5bdfb65641c1c8b960258cb5c748712434ebabfd (diff)
downloadFreeBSD-ports-aea3a16fa29823b402d43be4dc8f7a39dd991c03.zip
FreeBSD-ports-aea3a16fa29823b402d43be4dc8f7a39dd991c03.tar.gz
[NEW PORT] sysutils/estctrl
This port provides a daemon for adjusting the cpu frequency (using the Enhanced Speedstep module in sysutils/est) based on the current cpu load and power source. PR: ports/71270 Submitted by: Colin Percival <cperciva@daemonology.net>
Diffstat (limited to 'sysutils/estctrl/files')
-rw-r--r--sysutils/estctrl/files/estctrl.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/sysutils/estctrl/files/estctrl.sh b/sysutils/estctrl/files/estctrl.sh
new file mode 100644
index 0000000..baeec68
--- /dev/null
+++ b/sysutils/estctrl/files/estctrl.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: estctrl
+# REQUIRE: est
+# KEYWORD: FreeBSD
+
+# Define estctrl_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+# /etc/rc.conf.d/est
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+estctrl_enable="NO"
+estctrl_speed_ac="adaptive"
+estctrl_speed_battery="adaptive"
+
+. %%RC_SUBR%%
+
+name="estctrl"
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+command="%%PREFIX%%/sbin/estctrl"
+command_args="-a ${estctrl_speed_ac} -b ${estctrl_speed_battery} &"
+
+run_rc_command "$1"
OpenPOWER on IntegriCloud