#!/bin/sh # $FreeBSD: head/net/iet/files/ietd.in 340872 2014-01-24 00:14:07Z mat $ # # PROVIDE: ietd # REQUIRE: LOGIN # KEYWORD: shutdown . /etc/rc.subr name="ietd" rcvar=ietd_enable command=%%PREFIX%%/sbin/${name} required_modules="%%PREFIX%%/modules/iet.ko:iet" stop_precmd="ietd_prestop" load_rc_config $name : ${ietd_enable:="NO"} ietd_prestop() { %%PREFIX%%/sbin/ietadm --op delete } run_rc_command "$1"