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