Source-Changes-HG archive

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

[src/trunk]: src/share/sushi/network/interfaces/interface Allways quote the n...



details:   https://anonhg.NetBSD.org/src/rev/615123b9ebe7
branches:  trunk
changeset: 512649:615123b9ebe7
user:      garbled <garbled%NetBSD.org@localhost>
date:      Thu Jul 12 19:11:43 2001 +0000

description:
Allways quote the nwid when passing to ifconfig or building the ifconfig.xx0
script

diffstat:

 share/sushi/network/interfaces/interface/script |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r fcdb561df303 -r 615123b9ebe7 share/sushi/network/interfaces/interface/script
--- a/share/sushi/network/interfaces/interface/script   Thu Jul 12 19:08:05 2001 +0000
+++ b/share/sushi/network/interfaces/interface/script   Thu Jul 12 19:11:43 2001 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: script,v 1.1 2001/04/25 03:43:34 garbled Exp $
+# $NetBSD: script,v 1.2 2001/07/12 19:11:43 garbled Exp $
 
 IFFILE="/etc/ifconfig.$1"
 MTU=`echo "$12" | sed -e 's/^0*//'`
@@ -31,7 +31,7 @@
        fi
        echo >> $IFFILE
        if [ ! -z $10 ]; then
-               echo -n "nwid $10" >> $IFFILE
+               echo -n "nwid "\""$10"\""" >> $IFFILE
        fi
        if [ ! -z $11 ]; then
                LINK=`echo "$11" | sed -e 's/,/ /'`
@@ -88,7 +88,7 @@
                NET=`echo -n " $NET prefixlen $9"`
        fi
        if [ ! -z $10 ]; then
-               NET=`echo -n " $NET nwid $10"`
+               NET=`echo -n " $NET nwid "\""$10"\"""`
        fi
        if [ ! -z $11 ]; then
                LINK=`echo "$11" | sed -e 's/,/ /'`



Home | Main Index | Thread Index | Old Index