summaryrefslogtreecommitdiff
path: root/etc/netstart
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2012-12-05 07:08:39 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2012-12-05 07:08:39 +0000
commit3d107e5c5d7a88e3dedf7007a39702759b8879a3 (patch)
tree576c41b7aed35128c43ff1f212d37d38358bb5a5 /etc/netstart
parent6b0955a9a2a2aea9449e76c7ac2d0156a59fc17c (diff)
remove "Invalid interface name" message
requested by krw@ ok halex@
Diffstat (limited to 'etc/netstart')
-rw-r--r--etc/netstart7
1 files changed, 2 insertions, 5 deletions
diff --git a/etc/netstart b/etc/netstart
index 641323e03ab..d5b7c73be6a 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.136 2012/12/02 21:02:45 rpe Exp $
+# $OpenBSD: netstart,v 1.137 2012/12/05 07:08:38 rpe Exp $
# Strip comments (and leading/trailing whitespace if IFS is set)
# from a file and spew to stdout
@@ -17,10 +17,7 @@ ifstart() {
if=$1
# Interface names must be alphanumeric only. We check to avoid
# configuring backup or temp files, and to catch the "*" case.
- if [[ $if != +([[:alpha:]])+([[:digit:]]) ]]; then
- echo "netstart: $if: Invalid interface name"
- return
- fi
+ [[ $if != +([[:alpha:]])+([[:digit:]]) ]] && return
file=/etc/hostname.$if
if ! [ -f $file ]; then