summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-01-26 15:29:53 +0000
committerjhb <jhb@FreeBSD.org>2010-01-26 15:29:53 +0000
commit16e135f2d04911d391324bcd34aa698856b065c0 (patch)
tree2006d5e1add1e2289447eebb7f0b05cad8f4a3a6 /usr.sbin
parent3e0f5e5d709be7f0c7adfeaa444faaae1ef8669f (diff)
downloadFreeBSD-src-16e135f2d04911d391324bcd34aa698856b065c0.zip
FreeBSD-src-16e135f2d04911d391324bcd34aa698856b065c0.tar.gz
Don't pop up the menu to select a documentation language for non-interactive
installs. Default to not installing any documentation in that case. MFC after: 1 week
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sysinstall/dist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c
index 5c9fe1c..1a2dd5b 100644
--- a/usr.sbin/sysinstall/dist.c
+++ b/usr.sbin/sysinstall/dist.c
@@ -775,6 +775,10 @@ distSetDoc(dialogMenuItem *self)
{
int i;
+ /* Assume no docs for non-interactive installs. */
+ if (variable_get(VAR_NONINTERACTIVE))
+ return DITEM_SUCCESS | DITEM_RESTORE;
+
dialog_clear_norefresh();
if (!dmenuOpenSimple(&MenuDocInstall, FALSE))
i = DITEM_FAILURE;
OpenPOWER on IntegriCloud