diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-03-22 04:31:43 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-03-22 04:31:43 +0000 |
commit | 7e5711543a0c5ebb1f1c07774bfdab572f22aa21 (patch) | |
tree | 60469e8ab5f8c48982c39e0a3e9fe8aa1572db93 /etc | |
parent | a05c7c67a9767c4c920e3473e6bc3850d024387d (diff) |
Make sure pfsync is brought up before carp.
ok deraadt@
Diffstat (limited to 'etc')
-rw-r--r-- | etc/netstart | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/etc/netstart b/etc/netstart index 35d76bbad58..1da47a0f52e 100644 --- a/etc/netstart +++ b/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 ;; *) |