=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/netstart,v retrieving revision 1.136 retrieving revision 1.137 diff -c -r1.136 -r1.137 *** src/etc/netstart 2012/12/02 21:02:45 1.136 --- src/etc/netstart 2012/12/05 07:08:38 1.137 *************** *** 1,6 **** #!/bin/sh - # ! # $OpenBSD: netstart,v 1.136 2012/12/02 21:02:45 rpe Exp $ # Strip comments (and leading/trailing whitespace if IFS is set) # from a file and spew to stdout --- 1,6 ---- #!/bin/sh - # ! # $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,26 **** 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 file=/etc/hostname.$if if ! [ -f $file ]; then --- 17,23 ---- if=$1 # Interface names must be alphanumeric only. We check to avoid # configuring backup or temp files, and to catch the "*" case. ! [[ $if != +([[:alpha:]])+([[:digit:]]) ]] && return file=/etc/hostname.$if if ! [ -f $file ]; then