summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-10-29 18:17:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-10-29 18:17:04 +0000
commitde9aadfff9f8172075e398005fca8da68ff12dc5 (patch)
tree686dc2347a131dc3908992d875a996d875828ede /etc/rc
parent4feb42355f853fe85a9f0aefefa6f40dc4ef8ed0 (diff)
handle pflogd_flags better; openbsd@davidkrause.com
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc8
1 files changed, 4 insertions, 4 deletions
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