Browse Source

Need to do "ifconfig create" for bridge interfaces too.

OPENBSD_3_5
millert 20 years ago
parent
commit
94da5d3f87
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/etc/netstart

+ 6
- 2
src/etc/netstart View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: netstart,v 1.89 2003/12/03 13:28:36 markus Exp $
# $OpenBSD: netstart,v 1.90 2003/12/04 01:19:37 millert Exp $
# Returns true if $1 contains only alphanumerics # Returns true if $1 contains only alphanumerics
isalphanumeric() { isalphanumeric() {
@ -136,7 +136,11 @@ bridgestart() {
fi fi
brconfig $1 > /dev/null 2>&1 brconfig $1 > /dev/null 2>&1
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
return
# Try to create interface if it does not exist
ifconfig $if create > /dev/null 2>&1
if [ "$?" != "0" ]; then
return
fi
fi fi
# Now parse the bridgename.* file # Now parse the bridgename.* file


Loading…
Cancel
Save