Browse Source

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
OPENBSD_4_1
henning 17 years ago
parent
commit
4d4b029c15
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/etc/rc

+ 2
- 1
src/etc/rc View File

@ -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}


Loading…
Cancel
Save