mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
Allow starting /etc/rc.d/ipmon if ipnat is enabled but ipfilter is not
(in /etc/rc.conf). This fixes an apparent confusion between test(1) and sh(1) syntax for AND/OR. PR: conf/149036 Submitted by: pluknet MFC after: 1 week
This commit is contained in:
parent
271e7c594b
commit
32c50473a8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210734
@ -20,7 +20,7 @@ ipmon_precmd()
|
||||
# Continue only if ipfilter or ipnat is enabled and the
|
||||
# ipfilter module is loaded.
|
||||
#
|
||||
if ! checkyesno ipfilter_enable -o ! checkyesno ipnat_enable ; then
|
||||
if ! checkyesno ipfilter_enable && ! checkyesno ipnat_enable ; then
|
||||
err 1 "${name} requires either ipfilter or ipnat enabled"
|
||||
fi
|
||||
if ! sysctl net.inet.ipf.fr_pass >/dev/null 2>&1; then
|
||||
|
Loading…
Reference in New Issue
Block a user