From 0aa16ba9b4f6a83811f5702bd682870e9636a1b0 Mon Sep 17 00:00:00 2001 From: madduck Date: Thu, 26 Oct 2006 20:35:47 +0000 Subject: * Hide informational messages unless VERBOSE is set to a true value in /etc/default/mdadm. --- debian/mdadm.postinst | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'debian/mdadm.postinst') diff --git a/debian/mdadm.postinst b/debian/mdadm.postinst index ebdf1110..be53bdb4 100644 --- a/debian/mdadm.postinst +++ b/debian/mdadm.postinst @@ -43,6 +43,9 @@ case "${1:-}" in cp -a /etc/mdctl/mdctl.conf /etc/mdadm/mdadm.conf fi + # load current settings, most of which will be overwritten. + [ -f $DEBIANCONFIG ] && . $DEBIANCONFIG + db_get mdadm/mail_to MAILADDR="${RET:-root}" @@ -112,17 +115,20 @@ AUTOCHECK=$AUTOCHECK # should mdadm start the MD monitoring daemon during boot? START_DAEMON=$START_DAEMON +# VERBOSE= +# if this variable is set to true, mdadm will be a little more verbose e.g. +# when creating the initramfs. +VERBOSE=${VERBOSE:-false} + # MAIL_TO # this variable is now managed in /etc/mdadm/mdadm.conf (MAILADDR). # Please see mdadm.conf(5). -# USE_DEPRECATED_MDRUN= +# USE_DEPRECATED_MDRUN: # mdrun is deprecated. If you still want to use it without a warning, set # the following to true. # -# NOTE: changes to this variable will not be preserved! -# -USE_DEPRECATED_MDRUN=false +USE_DEPRECATED_MDRUN=${USE_DEPRECATED_MDRUN:-false} _eof db_stop -- cgit v1.2.3