From a22f7514bb011944199abf0bbe0eb196e0ce079c Mon Sep 17 00:00:00 2001 From: cy Date: Fri, 30 Nov 2018 06:47:01 +0000 Subject: [PATCH] This is a direct commit to the stable/10 branch. This would have been MFC r340754 except that etc/rc.d has been moved in HEAD which would have resulted in a tree conflict if merged. Allow forced start of ipmon in special cases where testing is desired (or other special cases) and when ipfilter is disabled in rc.conf but started by other means. git-svn-id: svn://svn.freebsd.org/base/stable/10@341289 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- etc/rc.d/ipmon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc.d/ipmon b/etc/rc.d/ipmon index cdd874266..3b8200794 100755 --- a/etc/rc.d/ipmon +++ b/etc/rc.d/ipmon @@ -20,7 +20,7 @@ ipmon_precmd() # Continue only if ipfilter or ipnat is enabled and the # ipfilter module is loaded. # - if ! checkyesno ipfilter_enable && ! checkyesno ipnat_enable ; then + if ! checkyesno ipfilter_enable && ! checkyesno ipnat_enable && ! checkyesno rc_force ; then err 1 "${name} requires either ipfilter or ipnat enabled" fi if ! ${ipfilter_program:-/sbin/ipf} -V | grep -q 'Running: yes' >/dev/null 2>&1; then -- 2.42.0