From 16e135f2d04911d391324bcd34aa698856b065c0 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 26 Jan 2010 15:29:53 +0000 Subject: 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 --- usr.sbin/sysinstall/dist.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr.sbin') 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; -- cgit v1.1