aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fancontroled/fancontroled.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/fancontroled/fancontroled.initd')
-rw-r--r--testing/fancontroled/fancontroled.initd18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/fancontroled/fancontroled.initd b/testing/fancontroled/fancontroled.initd
new file mode 100644
index 0000000000..1da4422e83
--- /dev/null
+++ b/testing/fancontroled/fancontroled.initd
@@ -0,0 +1,18 @@
+#!/sbin/runscript
+
+command=/usr/sbin/fancontroled
+command_args="${FANCONTROLED_OPTS}"
+pidfile=/var/run/fancontroled.pid
+description="Temperature dependent fan speed control"
+
+depend() {
+ need modules
+}
+
+start_pre() {
+ if [ -z "$FANCONTROLED_OPTS" ]; then
+ eerror "Please set FANCONTROLED_OPTS in /etc/conf.d/$RC_SVCNAME"
+ return 1
+ fi
+}
+