Browse Source

add support for ifconfig clone; from netbsd; ok deraadt, henning

OPENBSD_3_5
markus 20 years ago
parent
commit
61d17c5794
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 -
#
# $OpenBSD: netstart,v 1.88 2003/10/20 17:53:32 david Exp $
# $OpenBSD: netstart,v 1.89 2003/12/03 13:28:36 markus Exp $
# Returns true if $1 contains only alphanumerics
isalphanumeric() {
@ -27,7 +27,11 @@ ifstart() {
ifconfig $if > /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 hostname.* file


Loading…
Cancel
Save