diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2001-02-06 23:05:46 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2001-02-06 23:05:46 +0000 |
commit | afd20d25ce5c1fb9e8aa667a7f64bec12737c186 (patch) | |
tree | 07ffc7e82a89204b881a80a29cc41667e3ac8dd2 | |
parent | 0d23c6da7ed315193df4a25814f16b920ce61e9b (diff) |
ignore blank lines in addition to comments
fixes pr#1660 from wilfried@telia.com .. Thanks!
-rw-r--r-- | etc/netstart | 4 |
1 files 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 |