Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Aug 2009 10:11:34 +0000 (UTC)
From:      Rink Springer <rink@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r196272 - head/usr.sbin/sysinstall
Message-ID:  <200908161011.n7GABY5F010920@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rink
Date: Sun Aug 16 10:11:33 2009
New Revision: 196272
URL: http://svn.freebsd.org/changeset/base/196272

Log:
  Prevent sysinstall from needlessly waiting for confirmation when using an USB
  device in non-interactive mode.
  
  If there are no USB devices, sysinstall gives an error messages, and if there
  is >1, it'll ask which one is to be used. This change allows a non-interactive
  install from USB media to succeed without any user interaction if there is
  exactly one USB disk device in the system it can use.
  
  Submitted by:	Daniel O'Connor < doconnorat gsoft dot com dot au >
  Reviewed by:	randi
  Approved by:	re (rwatson)

Modified:
  head/usr.sbin/sysinstall/media.c

Modified: head/usr.sbin/sysinstall/media.c
==============================================================================
--- head/usr.sbin/sysinstall/media.c	Sun Aug 16 02:21:24 2009	(r196271)
+++ head/usr.sbin/sysinstall/media.c	Sun Aug 16 10:11:33 2009	(r196272)
@@ -262,7 +262,8 @@ mediaSetUSB(dialogMenuItem *self)
 		mediaDevice = devs[0];
 	if (mediaDevice)
 		mediaDevice->private = NULL;
-	msgConfirm("Using USB device: %s", mediaDevice->name);
+	if (!variable_get(VAR_NONINTERACTIVE))
+		msgConfirm("Using USB device: %s", mediaDevice->name);
 	return (mediaDevice ? DITEM_LEAVE_MENU : DITEM_FAILURE);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908161011.n7GABY5F010920>