1#!/bin/sh 2# 3# $FreeBSD$ 4# 5 6# PROVIDE: iovctl 7# REQUIRE: FILESYSTEMS sysctl 8 9. /etc/rc.subr 10 11name="iovctl" 12command="/usr/sbin/iovctl" 13start_cmd="iovctl_start" 14stop_cmd="iovctl_stop" 15 16run_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 28iovctl_start() 29{ 30 run_iovctl -C 31} 32 33iovctl_stop() 34{ 35 run_iovctl -D 36} 37 38load_rc_config $name 39run_rc_command "$1" 40