1279463Srstone#!/bin/sh 2279463Srstone# 3279463Srstone# $FreeBSD: releng/11.0/etc/rc.d/iovctl 284891 2015-06-27 18:01:50Z pkelsey $ 4279463Srstone# 5279463Srstone 6279463Srstone# PROVIDE: iovctl 7279463Srstone# REQUIRE: FILESYSTEMS sysctl 8279463Srstone 9279463Srstone. /etc/rc.subr 10279463Srstone 11279463Srstonename="iovctl" 12279463Srstonecommand="/usr/sbin/iovctl" 13279463Srstonestart_cmd="iovctl_start" 14279463Srstonestop_cmd="iovctl_stop" 15279463Srstone 16279463Srstonerun_iovctl() 17279463Srstone{ 18279463Srstone local _f flag 19279463Srstone 20279463Srstone flag=$1 21279463Srstone for _f in ${iovctl_files} ; do 22279463Srstone if [ -r ${_f} ]; then 23279463Srstone ${command} ${flag} -f ${_f} > /dev/null 24279463Srstone fi 25279463Srstone done 26279463Srstone} 27279463Srstone 28279463Srstoneiovctl_start() 29279463Srstone{ 30284891Spkelsey run_iovctl -C 31279463Srstone} 32279463Srstone 33279463Srstoneiovctl_stop() 34279463Srstone{ 35279463Srstone run_iovctl -D 36279463Srstone} 37279463Srstone 38279463Srstoneload_rc_config $name 39279463Srstonerun_rc_command "$1" 40