Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d I believe in that the facy nested quotes was intend...



details:   https://anonhg.NetBSD.org/src/rev/bc077a58f8c8
branches:  trunk
changeset: 499542:bc077a58f8c8
user:      nisimura <nisimura%NetBSD.org@localhost>
date:      Wed Nov 22 04:20:04 2000 +0000

description:
I believe in that the facy nested quotes was intended to skip blank
lines, but am not sure it is allowed as a standard practice of the
/etc/ifconfig.xxN file.

diffstat:

 etc/rc.d/network |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r d10005096210 -r bc077a58f8c8 etc/rc.d/network
--- a/etc/rc.d/network  Wed Nov 22 03:56:52 2000 +0000
+++ b/etc/rc.d/network  Wed Nov 22 04:20:04 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: network,v 1.25 2000/11/21 16:12:48 wiz Exp $
+# $NetBSD: network,v 1.26 2000/11/22 04:20:04 nisimura Exp $
 #
 
 # PROVIDE: network
@@ -109,9 +109,8 @@
                        elif [ -f /etc/ifconfig.$int ]; then
                                echo -n " $int"
                                while read args; do
-                                       if [ -n "`eval echo '$args'`" ] ; then
-                                               ifconfig $int $args
-                                       fi
+                                       [ -z "$args" ] && continue
+                                       ifconfig $int $args
                                done < /etc/ifconfig.$int
                        else
                                if ! checkyesno auto_ifconfig; then



Home | Main Index | Thread Index | Old Index