summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-07-07 23:53:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-07-07 23:53:06 +0000
commitcc5b110fd79338c62d0509c45d871ab72743a177 (patch)
treeb4a5ebb12eec3423e9ae1531af181e81a6ee862f /etc/rc
parent205fcf4c83bb731e3f29e1d5dade31c6d6231c50 (diff)
oops, the netstart for pfsync *MUST* have the conditional
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 2b97b9ae06f..84f7442e9cd 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.366 2011/07/07 23:47:22 deraadt Exp $
+# $OpenBSD: rc,v 1.367 2011/07/07 23:53:05 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -323,7 +323,9 @@ if [ X"${pf}" != X"NO" ]; then
pfctl -f ${pf_rules}
fi
# bring up pfsync after the working ruleset has been loaded
- . /etc/netstart pfsync0
+ if [ -f /etc/hostname.pfsync0 ]; then
+ . /etc/netstart pfsync0
+ fi
fi
mount -s /usr >/dev/null 2>&1