Browse Source

subtle bug .. global variables in a while loop need reset 'just incase'


OPENBSD_2_8
todd 24 years ago
parent
commit
e926da66f4
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/etc/netstart

+ 3
- 1
src/etc/netstart View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: netstart,v 1.71 2000/06/18 19:02:24 todd Exp $
# $OpenBSD: netstart,v 1.72 2000/09/02 15:59:29 todd Exp $
# Returns true if $1 contains only alphanumerics # Returns true if $1 contains only alphanumerics
isalphanumeric() { isalphanumeric() {
@ -157,6 +157,8 @@ for hn in /etc/hostname.*; do
bcaddr=$ext1 bcaddr=$ext1
ext1=$ext2 ext1=$ext2
ext2= ext2=
else
alias=
fi fi
cmd="ifconfig $if $af $alias $name " cmd="ifconfig $if $af $alias $name "
case "$dt" in case "$dt" in


Loading…
Cancel
Save