pf now works on NetBSD

This commit is contained in:
Roy Marples 2008-01-15 19:35:33 +00:00
parent aa0399e22b
commit 0b5d44af8d

View File

@ -18,6 +18,10 @@ start()
ebegin "Starting ${name}"
if type kldload >/dev/null 2>&1; then
kldload pf 2>/dev/null
elif type modload >/dev/null 2>&1; then
if ! modstat -n pf >/dev/null; then
modload /usr/lkm/pf.o >/dev/null
fi
fi
pfctl -q -F all
pfctl -q -f "${pf_conf}" ${pf_args}