From de9aadfff9f8172075e398005fca8da68ff12dc5 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 29 Oct 2001 18:17:04 +0000 Subject: handle pflogd_flags better; openbsd@davidkrause.com --- etc/rc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'etc/rc') diff --git a/etc/rc b/etc/rc index 9e789b8dcef..e1ed21c15b8 100644 --- a/etc/rc +++ b/etc/rc @@ -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 # or after single-user. @@ -116,7 +116,7 @@ rm -f /fastboot # XXX (root now writeable) echo 'setting tty flags' ttyflags -a -if [ "X$pf" != X"NO" ]; then +if [ "X${pf}" != X"NO" ]; then RULES="block in all\nblock out all" case `sysctl vfs.mounts.nfs` in *[1-9]*) @@ -143,7 +143,7 @@ fi echo 'starting network' . /etc/netstart -if [ "X$pf" != X"NO" ]; then +if [ "X${pf}" != X"NO" ]; then if [ -f ${nat_rules} ]; then pfctl -N ${nat_rules} fi @@ -189,7 +189,7 @@ if [ "X${named_flags}" != X"NO" -a "X${named_chroot}" != "X" ]; then fi syslogd ${syslogd_flags} -if [ "X$pf" != X"NO" ]; then +if [ X"${pf}" != X"NO" -a X"${pflogd_flags}" != X"NO" ]; then ifconfig pflog0 up pflogd ${pflogd_flags} fi -- cgit v1.2.3