Browse Source

handle pflogd_flags better; openbsd@davidkrause.com

OPENBSD_3_1
deraadt 23 years ago
parent
commit
d76beff0da
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/etc/rc

+ 4
- 4
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.185 2001/10/09 18:44:17 angelos Exp $
# $OpenBSD: rc,v 1.186 2001/10/29 18:17:03 deraadt 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.
@ -116,7 +116,7 @@ rm -f /fastboot # XXX (root now writeable)
echo 'setting tty flags' echo 'setting tty flags'
ttyflags -a ttyflags -a
if [ "X$pf" != X"NO" ]; then
if [ "X${pf}" != X"NO" ]; then
RULES="block in all\nblock out all" RULES="block in all\nblock out all"
case `sysctl vfs.mounts.nfs` in case `sysctl vfs.mounts.nfs` in
*[1-9]*) *[1-9]*)
@ -143,7 +143,7 @@ fi
echo 'starting network' echo 'starting network'
. /etc/netstart . /etc/netstart
if [ "X$pf" != X"NO" ]; then
if [ "X${pf}" != X"NO" ]; then
if [ -f ${nat_rules} ]; then if [ -f ${nat_rules} ]; then
pfctl -N ${nat_rules} pfctl -N ${nat_rules}
fi fi
@ -189,7 +189,7 @@ if [ "X${named_flags}" != X"NO" -a "X${named_chroot}" != "X" ]; then
fi fi
syslogd ${syslogd_flags} syslogd ${syslogd_flags}
if [ "X$pf" != X"NO" ]; then
if [ X"${pf}" != X"NO" -a X"${pflogd_flags}" != X"NO" ]; then
ifconfig pflog0 up ifconfig pflog0 up
pflogd ${pflogd_flags} pflogd ${pflogd_flags}
fi fi


Loading…
Cancel
Save