diff options
author | cy <cy@FreeBSD.org> | 2013-09-10 13:48:33 +0000 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2013-09-10 13:48:33 +0000 |
commit | fb54646ac9d6c54d3873fc73c0ddfaec79b684a2 (patch) | |
tree | 68f474cc80a59a39d364f2b20a7a81f984f6fb58 /etc/rc.d/ipmon | |
parent | 7ebbaecc5c38f3e926243328ea7a642e554edaa8 (diff) | |
download | FreeBSD-src-fb54646ac9d6c54d3873fc73c0ddfaec79b684a2.zip FreeBSD-src-fb54646ac9d6c54d3873fc73c0ddfaec79b684a2.tar.gz |
ipfilter 5.1.2 no longer supports sysctl. Use ipf -V to determine if
available (the kernel module is loaded or compiled into the kernel).
Approved by: glebius (mentor)
Approved by: re (blanket)
Diffstat (limited to 'etc/rc.d/ipmon')
-rwxr-xr-x | etc/rc.d/ipmon | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/ipmon b/etc/rc.d/ipmon index 27f483c..cdd8742 100755 --- a/etc/rc.d/ipmon +++ b/etc/rc.d/ipmon @@ -23,7 +23,7 @@ ipmon_precmd() 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 + if ! ${ipfilter_program:-/sbin/ipf} -V | grep -q 'Running: yes' >/dev/null 2>&1; then err 1 "ipfilter module is not loaded" fi return 0 |