diff options
author | jkh <jkh@FreeBSD.org> | 2001-07-30 20:45:54 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 2001-07-30 20:45:54 +0000 |
commit | 0d0a83d135cf658afdb95d054dadc23d596b55be (patch) | |
tree | 49b59cd82d15b3e3e416b5dfe6cf455231c179b1 /usr.sbin/sysinstall/media.c | |
parent | 4763bc528ea62c67eec3c4061a9901246e7e9655 (diff) | |
download | FreeBSD-src-0d0a83d135cf658afdb95d054dadc23d596b55be.zip FreeBSD-src-0d0a83d135cf658afdb95d054dadc23d596b55be.tar.gz |
If we're set to non-interactive, we shouldn't ask the user yes/no questions
but simply return the default answer instead.
Diffstat (limited to 'usr.sbin/sysinstall/media.c')
-rw-r--r-- | usr.sbin/sysinstall/media.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c index 789d0a6..c5216e2 100644 --- a/usr.sbin/sysinstall/media.c +++ b/usr.sbin/sysinstall/media.c @@ -323,10 +323,8 @@ mediaSetFTP(dialogMenuItem *self) mediaClose(); cp = variable_get(VAR_FTP_PATH); /* If we've been through here before ... */ - if (!variable_get(VAR_NONINTERACTIVE)) - if (networkDev && cp && msgYesNo("Re-use old FTP site selection values?")) - cp = NULL; - + if (networkDev && cp && msgYesNo("Re-use old FTP site selection values?")) + cp = NULL; if (!cp) { if (!dmenuOpenSimple(&MenuMediaFTP, FALSE)) return DITEM_FAILURE; |