~ubuntu-branches/ubuntu/dapper/mdadm/dapper

« back to all changes in this revision

Viewing changes to debian/{arch}/++pristine-trees/unlocked/debiandir/debiandir--mdadm/debiandir--mdadm--1.12.0-1/pkg-mdadm-devel@lists.alioth.debian.org--2005/debiandir--mdadm--1.12.0-1--patch-2/mdadm.config

  • Committer: Package Import Robot
  • Author(s): Fabio M. Di Nitto
  • Date: 2005-11-28 07:35:36 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20051128073536-ph8pstb6ams9huk4
Tags: 1.12.0-1ubuntu1
Resyncronize with Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Copyright (C) 2001-2004 Mario Jou/3en <joussen@debian.org>
 
3
# Distributable under the terms of the GNU GPL version 2.
 
4
 
 
5
set -e
 
6
 
 
7
. /usr/share/debconf/confmodule
 
8
 
 
9
DEBIANCONFIG=/etc/default/mdadm
 
10
DEBIANCONFIG_OLD=/etc/mdadm/debian.conf
 
11
 
 
12
if [ ! -e "$DEBIANCONFIG" ]; then
 
13
    if [ -e "$DEBIANCONFIG_OLD" ]; then
 
14
       DEBIANCONFIG="$DEBIANCONFIG_OLD"
 
15
    fi
 
16
fi
 
17
 
 
18
if [ -s $DEBIANCONFIG ] ; then
 
19
    . $DEBIANCONFIG
 
20
    if [ -n "$AUTOSTART" ]; then
 
21
       db_set mdadm/autostart "$AUTOSTART"
 
22
    fi
 
23
    if [ -n "$START_DAEMON" ]; then
 
24
        db_set mdadm/start_daemon "$START_DAEMON"
 
25
    fi
 
26
    if [ -n "$MAIL_TO" ]; then
 
27
       db_set mdadm/mail_to "$MAIL_TO"
 
28
    fi
 
29
fi
 
30
 
 
31
db_input medium mdadm/warning || true
 
32
db_go
 
33
 
 
34
db_input medium mdadm/autostart || true
 
35
db_go
 
36
 
 
37
db_input medium mdadm/start_daemon || true
 
38
db_go
 
39
 
 
40
db_get mdadm/start_daemon
 
41
if [ "x$RET" = "xtrue" ] ; then
 
42
    db_input medium mdadm/mail_to || true
 
43
    db_go
 
44
fi