summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2011-07-07 23:53:05 +0000
committerderaadt <deraadt@openbsd.org>2011-07-07 23:53:05 +0000
commitdf0568a3306a2a2cbcdc9abd42f76d537232c440 (patch)
treea2f2f84352dae1577ac4381c9cac501c727a6d60
parentdisable the afs enable stuff. when nnpfs is re-enabled, that can be added (diff)
downloadwireguard-openbsd-df0568a3306a2a2cbcdc9abd42f76d537232c440.tar.xz
wireguard-openbsd-df0568a3306a2a2cbcdc9abd42f76d537232c440.zip
oops, the netstart for pfsync *MUST* have the conditional
-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