Browse Source

delay carp initialization until after physical interfaces are configured

ok mcbride@ henning@ deraadt@ todd@
OPENBSD_3_5
david 21 years ago
parent
commit
62a85f9922
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      src/etc/netstart

+ 6
- 6
src/etc/netstart View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: netstart,v 1.87 2003/08/27 11:49:36 henning Exp $
# $OpenBSD: netstart,v 1.88 2003/10/20 17:53:32 david Exp $
# Returns true if $1 contains only alphanumerics
isalphanumeric() {
@ -250,9 +250,9 @@ for hn in /etc/hostname.*; do
test "$if" = "*" && continue
case $if in
"gif"*|"gre"*)
# GIF and GRE interfaces need the routes to be setup before
# they are configured.
"carp"*|"gif"*|"gre"*)
# CARP, GIF and GRE interfaces need the routes to be setup
# before they are configured.
continue
;;
*)
@ -316,7 +316,7 @@ EOF
;;
esac
# Configure all the gif and gre interfaces which we know about.
# 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
@ -324,7 +324,7 @@ for hn in /etc/hostname.*; do
test "$if" = "*" && continue
case $if in
"gif"*|"gre"*)
"carp"*|"gif"*|"gre"*)
ifstart $if
;;
*)


Loading…
Cancel
Save