summaryrefslogtreecommitdiff
path: root/debian/mdadm-raid
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2014-10-04 18:19:11 +0400
committerMichael Tokarev <mjt@tls.msk.ru>2014-10-04 20:32:00 +0400
commitffb0e126255a6a074519ee458b5d26d6ba40dca1 (patch)
treee743bebc862349a7476e70c4e3f5980c0f596cc6 /debian/mdadm-raid
parent47db9cc7c7c53ddc81f03803575e39f605f99633 (diff)
removed AUTOSTART variable from /etc/default/mdadm
Diffstat (limited to 'debian/mdadm-raid')
-rw-r--r--debian/mdadm-raid11
1 files changed, 0 insertions, 11 deletions
diff --git a/debian/mdadm-raid b/debian/mdadm-raid
index a50c8241..6d4d6a99 100644
--- a/debian/mdadm-raid
+++ b/debian/mdadm-raid
@@ -31,7 +31,6 @@ DEBIANCONFIG=/etc/default/mdadm
test -x "$MDADM" || exit 0
-AUTOSTART=true
STATEDIR=/run/mdadm
test -f $DEBIANCONFIG && . $DEBIANCONFIG
@@ -87,11 +86,6 @@ case "${1:-}" in
start)
PREFIX="Assembling MD array"
- if ! is_true $AUTOSTART && ! is_true ${MDADM_FORCE_AUTOSTART__:-0}; then
- log_notice "disabled in $DEBIANCONFIG"
- exit 0
- fi
-
if [ ! -f /proc/mdstat ] && [ -x "$(command -v modprobe)" ] ; then
modprobe -q md 2>/dev/null || :
fi
@@ -191,11 +185,6 @@ case "${1:-}" in
stop)
PREFIX="Stopping MD array"
- if ! is_true $AUTOSTART; then
- log_notice "disabled in $DEBIANCONFIG"
- exit 0
- fi
-
if [ ! -f /proc/mdstat ]; then
log_problem "no MD subsystem loaded"
exit 0