aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fancontroled/fancontroled.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-09-04 14:59:24 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-09-04 14:59:24 +0000
commite743f23cb1bd92857e6f378eec6bd765fd778fa2 (patch)
tree8457d9024a7e4777541a0ea05940a55400cd647d /testing/fancontroled/fancontroled.initd
parent3f17b20a0297253197f3ce9ba6e5823a2c289eec (diff)
downloadaports-e743f23cb1bd92857e6f378eec6bd765fd778fa2.tar.bz2
aports-e743f23cb1bd92857e6f378eec6bd765fd778fa2.tar.xz
testing/fancontroled: add init.d script
ref #1175
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
+}
+