diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2002-05-16 20:48:26 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2002-05-16 20:48:26 +0000 |
commit | af7b6de367dd0d1a52af6b34a49e1af0af0add7c (patch) | |
tree | 0b1e37a5e7bb5f20deb85da9d326427c7973f12a | |
parent | bb90ee2c4c7ec951931610228b84ed9745c133ae (diff) |
ignore non-existent cases where '$if' evaluates to '*'.
From André Lucas <andre@ae-35.com>, fixes pr # 2658.
'Looks good' from miod@, millert@, and krw@.
-rw-r--r-- | etc/netstart | 5 |
1 files changed, 4 insertions, 1 deletions
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 |