summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-11-16 13:07:12 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-11-16 13:07:12 +0000
commit9f759c2a2fd538246c3c6e3ffc0a14d0c8b0ab64 (patch)
tree02a6be388febbbdfe5d2f34039b4537d18e0318b /etc
parent9e58eafd2dff9a33097a4465702532b8959b047b (diff)
when pf and pflogd are enabled, do a "ifconfig pflog0 create" early.
rc checks pflog0 existance before starting pflogd0, pbly to not print an error message on pflog-less kernels... ugh. ok mcbride
Diffstat (limited to 'etc')
-rw-r--r--etc/rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 44e567f7d3a..7893094d591 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.293 2006/11/06 21:55:52 deraadt Exp $
+# $OpenBSD: rc,v 1.294 2006/11/16 13:07:11 henning Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -301,6 +301,7 @@ fi
syslogd ${syslogd_flags}
if [ X"${pf}" != X"NO" -a X"${pflogd_flags}" != X"NO" ]; then
+ ifconfig pflog0 create >/dev/null 2>&1
if ifconfig pflog0 >/dev/null 2>&1; then
ifconfig pflog0 up
pflogd ${pflogd_flags}