]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sbin/init/rc.d/iovctl
Move rc startup scripts from etc/ to sbin/init/
[FreeBSD/FreeBSD.git] / sbin / init / rc.d / iovctl
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: iovctl
7 # REQUIRE: FILESYSTEMS sysctl
8
9 . /etc/rc.subr
10
11 name="iovctl"
12 command="/usr/sbin/iovctl"
13 start_cmd="iovctl_start"
14 stop_cmd="iovctl_stop"
15
16 run_iovctl()
17 {
18         local _f flag
19
20         flag=$1
21         for _f in ${iovctl_files} ; do
22                 if [ -r ${_f} ]; then
23                         ${command} ${flag} -f ${_f} > /dev/null
24                 fi
25         done
26 }
27
28 iovctl_start()
29 {
30         run_iovctl -C
31 }
32
33 iovctl_stop()
34 {
35         run_iovctl -D
36 }
37
38 load_rc_config $name
39 run_rc_command "$1"