summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/media.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-10-12 19:30:26 +0000
committerjkh <jkh@FreeBSD.org>1996-10-12 19:30:26 +0000
commit1689251411a99188db03b1c1e36662af3b9d5978 (patch)
tree449474bd173dabcfa4f8e87c4f22bf7111f1e267 /usr.sbin/sysinstall/media.c
parent8a4edeb5fd52344d93839ba1a6e8d2f857e5fd78 (diff)
downloadFreeBSD-src-1689251411a99188db03b1c1e36662af3b9d5978.zip
FreeBSD-src-1689251411a99188db03b1c1e36662af3b9d5978.tar.gz
Some cosmetic tweaks, attempt to fix package wait problem by checking
for error return as well (not sure if this is it, but it's one possible explanation).
Diffstat (limited to 'usr.sbin/sysinstall/media.c')
-rw-r--r--usr.sbin/sysinstall/media.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c
index dda7139..dc642a4 100644
--- a/usr.sbin/sysinstall/media.c
+++ b/usr.sbin/sysinstall/media.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
- * $Id: media.c,v 1.59 1996/10/06 02:10:54 jkh Exp $
+ * $Id: media.c,v 1.60 1996/10/09 09:53:38 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -262,6 +262,10 @@ mediaSetFTP(dialogMenuItem *self)
static Boolean network_init = 1;
int what = DITEM_RESTORE;
+ /* If we've been through here before ... */
+ if (!network_init && msgYesNo("Re-use old FTP site selection values?"))
+ variable_unset(VAR_FTP_PATH);
+
cp = variable_get(VAR_FTP_PATH);
if (!cp) {
dialog_clear_norefresh();
@@ -298,12 +302,12 @@ mediaSetFTP(dialogMenuItem *self)
dialog_clear_norefresh();
if (network_init || msgYesNo("You've already done the network configuration once,\n"
"would you like to skip over it now?") != 0) {
+ if (mediaDevice)
+ mediaDevice->shutdown(mediaDevice);
if (!tcpDeviceSelect()) {
variable_unset(VAR_FTP_PATH);
return DITEM_FAILURE | what;
}
- if (!network_init)
- mediaDevice->shutdown(mediaDevice);
if (!mediaDevice || !mediaDevice->init(mediaDevice)) {
if (isDebug())
msgDebug("mediaSetFTP: Net device init failed.\n");
OpenPOWER on IntegriCloud