aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fancontroled/fancontroled.initd
blob: 1da4422e8342ae005a9f76a02af17cfb6bb4aa6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}