2
# Copyright (C) 2001-2004 Mario Jou/3en <joussen@debian.org>
3
# Distributable under the terms of the GNU GPL version 2.
7
. /usr/share/debconf/confmodule
9
DEBIANCONFIG=/etc/default/mdadm
10
DEBIANCONFIG_OLD=/etc/mdadm/debian.conf
12
if [ ! -e "$DEBIANCONFIG" ]; then
13
if [ -e "$DEBIANCONFIG_OLD" ]; then
14
DEBIANCONFIG="$DEBIANCONFIG_OLD"
18
if [ -s $DEBIANCONFIG ] ; then
20
if [ -n "$AUTOSTART" ]; then
21
db_set mdadm/autostart "$AUTOSTART"
23
if [ -n "$START_DAEMON" ]; then
24
db_set mdadm/start_daemon "$START_DAEMON"
26
if [ -n "$MAIL_TO" ]; then
27
db_set mdadm/mail_to "$MAIL_TO"
31
db_input medium mdadm/warning || true
34
db_input medium mdadm/autostart || true
37
db_input medium mdadm/start_daemon || true
40
db_get mdadm/start_daemon
41
if [ "x$RET" = "xtrue" ] ; then
42
db_input medium mdadm/mail_to || true