Browse Source

Revert 1.142. Without the down netstart will just print the ifconfig

output because it may end up just calling 'ifconfig $if'. This needs
to be done better and properly tested.
OPENBSD_5_7
claudio 9 years ago
parent
commit
2a29db5717
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/netstart

+ 2
- 2
src/etc/netstart View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: netstart,v 1.142 2014/09/26 15:18:01 halex Exp $
# $OpenBSD: netstart,v 1.143 2014/09/28 12:58:02 claudio Exp $
# Strip comments (and leading/trailing whitespace if IFS is set)
# from a file and spew to stdout
@ -63,7 +63,7 @@ ifstart() {
[ "$name" = "NONE" ] && name=
[ "$mask" = "NONE" ] && mask=
[ "$bcaddr" = "NONE" ] && bcaddr=
cmd="ifconfig $if $name $mask $bcaddr $ext1 $ext2"
cmd="ifconfig $if $name $mask $bcaddr $ext1 $ext2 down"
cmd="$cmd;dhclient $if"
dhcpif="$dhcpif $if"
;;


Loading…
Cancel
Save