From 61ebadc6fe4e6ede3391303fe41f7906232b0a7c Mon Sep 17 00:00:00 2001 From: mcbride <> Date: Mon, 22 Mar 2004 04:31:42 +0000 Subject: [PATCH] Make sure pfsync is brought up before carp. ok deraadt@ --- src/etc/netstart | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/etc/netstart b/src/etc/netstart index 35d76bba..1da47a0f 100644 --- a/src/etc/netstart +++ b/src/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.95 2004/03/13 00:59:02 mcbride Exp $ +# $OpenBSD: netstart,v 1.96 2004/03/22 04:31:42 mcbride Exp $ # Returns true if $1 contains only alphanumerics isalphanumeric() { @@ -319,7 +319,12 @@ EOF ;; esac -# Configure all the carp, gif, gre and pfsync interfaces which we know about. +# The pfsync interface needs to come up before carp. +if [ -f /etc/hostname.pfsync0 ]; then + ifstart pfsync0 +fi + +# Configure all the carp, gif and gre interfaces which we know about. # They were delayed because they require the routes to be set. for hn in /etc/hostname.*; do # Strip off /etc/hostname. prefix @@ -327,7 +332,7 @@ for hn in /etc/hostname.*; do test "$if" = "*" && continue case $if in - "carp"*|"gif"*|"gre"*|"pfsync"*) + "carp"*|"gif"*|"gre"*) ifstart $if ;; *)