summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig/share/dialog.subr
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2012-12-21 20:46:58 +0000
committerdteske <dteske@FreeBSD.org>2012-12-21 20:46:58 +0000
commit9f0941e667a12709d3c95a297f0637c67f35a510 (patch)
treefcb99abd80f3b57400ee2042a4a05b557968a5c3 /usr.sbin/bsdconfig/share/dialog.subr
parent3523462cfba20ab0ca86dbb59d8eff46c0338b6e (diff)
downloadFreeBSD-src-9f0941e667a12709d3c95a297f0637c67f35a510.zip
FreeBSD-src-9f0941e667a12709d3c95a297f0637c67f35a510.tar.gz
Change axiom for initialization. Including script can disable (default)
automatic initialization by setting appropriate variable to particular value.
Diffstat (limited to 'usr.sbin/bsdconfig/share/dialog.subr')
-rw-r--r--usr.sbin/bsdconfig/share/dialog.subr5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/bsdconfig/share/dialog.subr b/usr.sbin/bsdconfig/share/dialog.subr
index 6a6bd45..3f4a89e 100644
--- a/usr.sbin/bsdconfig/share/dialog.subr
+++ b/usr.sbin/bsdconfig/share/dialog.subr
@@ -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
OpenPOWER on IntegriCloud