diff --git a/src/etc/rc b/src/etc/rc index 9e789b8d..e1ed21c1 100644 --- a/src/etc/rc +++ b/src/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