From: tholo Date: Mon, 5 May 1997 00:28:45 +0000 (+0000) Subject: When doing FTP installs, allow the user to get a list of FTP servers X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=42035ce51d92d16e3c011a800752a67c8e4d8761;p=openbsd When doing FTP installs, allow the user to get a list of FTP servers --- diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 436e4e30016..ed0eab3f3ec 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sub,v 1.14 1997/05/04 05:08:00 tholo Exp $ +# $OpenBSD: install.sub,v 1.15 1997/05/05 00:28:45 tholo Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -549,6 +549,17 @@ several questions. The correct set of commands will be placed in a script that will be fed to ftp(1). __install_ftp_1 + + # Provide a list of possible FTP servers + echo -n "Do you want a list of potential FTP servers? [y] " + getresp "y" + case "$resp" in + n*|N*) ;; + *) + ftp -V -a ftp://cvs.openbsd.org/pub/OpenBSD/`echo ${VERSION} | sed 's/\(.\)\(.\)/\1.\2/'`/ftplist | cat + ;; + esac + # Get server IP address resp="" # force one iteration while [ "X${resp}" = X"" ]; do