Browse Source

Make sure pfsync is brought up before carp.

ok deraadt@
OPENBSD_3_5
mcbride 20 years ago
parent
commit
61ebadc6fe
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      src/etc/netstart

+ 8
- 3
src/etc/netstart View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/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 # Returns true if $1 contains only alphanumerics
isalphanumeric() { isalphanumeric() {
@ -319,7 +319,12 @@ EOF
;; ;;
esac 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. # They were delayed because they require the routes to be set.
for hn in /etc/hostname.*; do for hn in /etc/hostname.*; do
# Strip off /etc/hostname. prefix # Strip off /etc/hostname. prefix
@ -327,7 +332,7 @@ for hn in /etc/hostname.*; do
test "$if" = "*" && continue test "$if" = "*" && continue
case $if in case $if in
"carp"*|"gif"*|"gre"*|"pfsync"*)
"carp"*|"gif"*|"gre"*)
ifstart $if ifstart $if
;; ;;
*) *)


Loading…
Cancel
Save