diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-10-29 18:17:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-10-29 18:17:04 +0000 |
commit | de9aadfff9f8172075e398005fca8da68ff12dc5 (patch) | |
tree | 686dc2347a131dc3908992d875a996d875828ede /etc/rc | |
parent | 4feb42355f853fe85a9f0aefefa6f40dc4ef8ed0 (diff) |
handle pflogd_flags better; openbsd@davidkrause.com
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |