From af7b6de367dd0d1a52af6b34a49e1af0af0add7c Mon Sep 17 00:00:00 2001 From: "Todd T. Fries" Date: Thu, 16 May 2002 20:48:26 +0000 Subject: =?UTF-8?q?ignore=20non-existent=20cases=20where=20'$if'=20evaluat?= =?UTF-8?q?es=20to=20'*'.=20From=20Andr=C3=A9=20Lucas=20,?= =?UTF-8?q?=20fixes=20pr=20#=202658.=20'Looks=20good'=20from=20miod@,=20mi?= =?UTF-8?q?llert@,=20and=20krw@.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/netstart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/netstart b/etc/netstart index 9ca4beb6d51..824ee8561a0 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.84 2002/02/23 01:55:24 deraadt Exp $ +# $OpenBSD: netstart,v 1.85 2002/05/16 20:48:25 todd Exp $ # Returns true if $1 contains only alphanumerics isalphanumeric() { @@ -242,6 +242,7 @@ fi for hn in /etc/hostname.*; do # Strip off /etc/hostname. prefix if=${hn#/etc/hostname.} + test "$if" = "*" && continue case $if in "gif"*|"gre"*) @@ -314,6 +315,7 @@ esac for hn in /etc/hostname.*; do # Strip off /etc/hostname. prefix if=${hn#/etc/hostname.} + test "$if" = "*" && continue case $if in "gif"*|"gre"*) @@ -330,6 +332,7 @@ done for bn in /etc/bridgename.*; do # Strip off /etc/bridgename. prefix if=${bn#/etc/bridgename.} + test "$if" = "*" && continue bridgestart $if done -- cgit v1.2.3