Browse Source

create pflog0 whenever pf is enabled, not just when pflogd_flags!=NO

fixes spamlogd with pflogd disabled.
ok henning
OPENBSD_4_3
sthen 17 years ago
parent
commit
3d752d818e
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      src/etc/rc

+ 5
- 3
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.309 2008/01/09 21:38:19 mpf Exp $
# $OpenBSD: rc,v 1.310 2008/01/16 14:19:28 sthen Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -298,11 +298,13 @@ if [ -d /var/empty ]; then
fi fi
syslogd ${syslogd_flags} syslogd ${syslogd_flags}
if [ X"${pf}" != X"NO" -a X"${pflogd_flags}" != X"NO" ]; then
if [ X"${pf}" != X"NO" ]; then
ifconfig pflog0 create >/dev/null 2>&1 ifconfig pflog0 create >/dev/null 2>&1
if ifconfig pflog0 >/dev/null 2>&1; then if ifconfig pflog0 >/dev/null 2>&1; then
ifconfig pflog0 up ifconfig pflog0 up
pflogd ${pflogd_flags}
if [ X"${pflogd_flags}" != X"NO" ]; then
pflogd ${pflogd_flags}
fi
fi fi
fi fi


Loading…
Cancel
Save