blob: ab6c18fecec435a6a915e60d3fc208c84d377856 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
#
# PROVIDE: bsdfan
# REQUIRE: DAEMON
# KEYWORD: resume shutdown
#
. /etc/rc.subr
name="bsdfan"
desc="Control fan speed using temperature sensor"
rcvar="bsdfan_enable"
: ${bsdfan_enable="NO"}
: ${bsdfan_flags="-d"}
command="%%PREFIX%%/bin/${name}"
extra_commands="resume"
resume_cmd="bsdfan_resume"
bsdfan_resume()
{
run_rc_command restart
}
load_rc_config ${name}
run_rc_command "$1"
|