Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2012 20:46:58 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244558 - head/usr.sbin/bsdconfig/share
Message-ID:  <201212212046.qBLKkwGJ035193@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Fri Dec 21 20:46:58 2012
New Revision: 244558
URL: http://svnweb.freebsd.org/changeset/base/244558

Log:
  Change axiom for initialization. Including script can disable (default)
  automatic initialization by setting appropriate variable to particular value.

Modified:
  head/usr.sbin/bsdconfig/share/dialog.subr

Modified: head/usr.sbin/bsdconfig/share/dialog.subr
==============================================================================
--- head/usr.sbin/bsdconfig/share/dialog.subr	Fri Dec 21 20:37:38 2012	(r244557)
+++ head/usr.sbin/bsdconfig/share/dialog.subr	Fri Dec 21 20:46:58 2012	(r244558)
@@ -1477,6 +1477,9 @@ f_dialog_init()
 
 ############################################################ MAIN
 
-[ "$DIALOG_SELF_INITIALIZE" ] && f_dialog_init
+case "$DIALOG_SELF_INITIALIZE" in
+""|0|[Nn][Oo]|[Oo][Ff][Ff]|[Ff][Aa][Ll][Ss][Ee]) : do nothing ;;
+*) f_dialog_init
+esac
 
 fi # ! $_DIALOG_SUBR



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