diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-12-04 01:19:38 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-12-04 01:19:38 +0000 |
commit | 35baeb0e6e63c95f2b32dc4aba78d59045a8b4ce (patch) | |
tree | 8ca1a735391348f62f109343fe7be72059c951b7 /etc/netstart | |
parent | 06930d645c023e7a3c293563c4f7baf7795fd7b4 (diff) |
Need to do "ifconfig create" for bridge interfaces too.
Diffstat (limited to 'etc/netstart')
-rw-r--r-- | etc/netstart | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/netstart b/etc/netstart index c1a6c2ae172..ca51c525406 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/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 isalphanumeric() { @@ -136,7 +136,11 @@ bridgestart() { fi brconfig $1 > /dev/null 2>&1 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 # Now parse the bridgename.* file |