summaryrefslogtreecommitdiff
path: root/etc/netstart
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2000-09-02 15:59:30 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2000-09-02 15:59:30 +0000
commit722ab439675fb8371abc07f69179ed9fc6d69668 (patch)
tree610c1c71d777c83e1f39b16e7af2963db8e62c13 /etc/netstart
parentc3d85a3d10a85474716c599b5b5d2c0f19345578 (diff)
subtle bug .. global variables in a while loop need reset 'just incase'
With: hostname.fxp0 having a last line of: inet6 alias 3ffe:... and hostname.gif0 having a first two lines of: giftunnel 1.2.3.4 dest 1.2.4.3 We end up with the command: ifconfig gif0 giftunnel alias 1.2.3.4 1.2.4.3 .. which is clearly wrong and fixed by this change
Diffstat (limited to 'etc/netstart')
-rw-r--r--etc/netstart4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/netstart b/etc/netstart
index 4cf032a921d..9dbcc3a3aa2 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/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
isalphanumeric() {
@@ -157,6 +157,8 @@ for hn in /etc/hostname.*; do
bcaddr=$ext1
ext1=$ext2
ext2=
+ else
+ alias=
fi
cmd="ifconfig $if $af $alias $name "
case "$dt" in