fix non behavior
authortodd <todd@openbsd.org>
Fri, 10 Mar 2000 13:21:51 +0000 (13:21 +0000)
committertodd <todd@openbsd.org>
Fri, 10 Mar 2000 13:21:51 +0000 (13:21 +0000)
with this `!' lines in /etc/hostname.* run even without certain lines
(like a comment) preceeding it.

etc/netstart

index d78c12e..71ee9b6 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $OpenBSD: netstart,v 1.63 2000/01/10 02:04:07 todd Exp $
+#      $OpenBSD: netstart,v 1.64 2000/03/10 13:21:51 todd Exp $
 
 # Returns true if $1 contains only alphanumerics
 isalphanumeric() {
@@ -124,11 +124,11 @@ for hn in /etc/hostname.*; do
                ext2=
            fi
            cmd="ifconfig $if $af $alias $name "
-           case $dt in
+           case "$dt" in
            dest)
                cmd="$cmd $dtaddr"
                ;;
-           [a-z]*)
+           [a-z!]*)
                cmd2="$dt $dtaddr"
                ;;
            esac