aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-15 19:35:33 +0000
committerRoy Marples <roy@marples.name>2008-01-15 19:35:33 +0000
commit0b5d44af8db2f20a5278e04af6ae6e9ad629c4df (patch)
tree64b12a72fa26e25c2f852b3dc69497869a33423d
parentaa0399e22b1c3e8eebdd05a5339039496123aa61 (diff)
pf now works on NetBSD
-rw-r--r--init.d.BSD/pf4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.d.BSD/pf b/init.d.BSD/pf
index bf2ac1a6..4f3eee44 100644
--- a/init.d.BSD/pf
+++ b/init.d.BSD/pf
@@ -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}