diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-09-04 14:59:24 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-09-04 14:59:24 +0000 |
commit | e743f23cb1bd92857e6f378eec6bd765fd778fa2 (patch) | |
tree | 8457d9024a7e4777541a0ea05940a55400cd647d /testing/fancontroled/fancontroled.initd | |
parent | 3f17b20a0297253197f3ce9ba6e5823a2c289eec (diff) | |
download | aports-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.initd | 18 |
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 +} + |