diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-09-26 21:41:24 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-09-26 21:41:24 +0000 |
commit | 1ab55a6b5debf2119d72069e1d13f93643836304 (patch) | |
tree | b6a978696bbd470370a6d6e5ea3ca698ea5ea498 /distrib/miniroot | |
parent | 59f150ea4c132d743d9980584ab92627e2292de6 (diff) |
proper spacing of dns queries
Diffstat (limited to 'distrib/miniroot')
-rw-r--r-- | distrib/miniroot/install.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index 967464e628b..7225c5415ca 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sh,v 1.32 1998/09/25 02:23:52 deraadt Exp $ +# $OpenBSD: install.sh,v 1.33 1998/09/26 21:41:23 deraadt Exp $ # $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $ # # Copyright (c) 1997,1998 Todd Miller, Theo de Raadt @@ -373,13 +373,21 @@ case "$resp" in ns="" for n in `grep '^nameserver ' /etc/resolv.conf | \ sed -e 's/^nameserver //'`; do - ns="$ns $n" + if [ "X${ns}" = "X" ]; then + ns="$n" + else + ns="$ns $n" + fi done elif [ -f /tmp/resolv.conf ]; then ns="" for n in `grep '^nameserver ' /tmp/resolv.conf | \ sed -e 's/^nameserver //'`; do - ns="$ns $n" + if [ "X${ns}" = "X" ]; then + ns="$n" + else + ns="$ns $n" + fi done fi echo -n "Enter IP address of primary nameserver: [$ns] " |