From afd20d25ce5c1fb9e8aa667a7f64bec12737c186 Mon Sep 17 00:00:00 2001 From: "Todd T. Fries" Date: Tue, 6 Feb 2001 23:05:46 +0000 Subject: ignore blank lines in addition to comments fixes pr#1660 from wilfried@telia.com .. Thanks! --- etc/netstart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/netstart b/etc/netstart index bc7e4a77d2c..1e0a8a1f41e 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.75 2001/01/10 22:17:10 jason Exp $ +# $OpenBSD: netstart,v 1.76 2001/02/06 23:05:45 todd Exp $ # Returns true if $1 contains only alphanumerics isalphanumeric() { @@ -123,7 +123,7 @@ for hn in /etc/hostname.*; do # $af can be "dhcp", "up", "rtsol", an address family, commands, or # a comment. case "$af" in - "#"*) # skip comments + "#"*|"") # skip comments and empty lines continue ;; "!"*) # parse commands -- cgit v1.2.3