summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/mdadm/files/raid-stop.sh')
-rw-r--r--sys-fs/mdadm/files/raid-stop.sh28
1 files changed, 0 insertions, 28 deletions
diff --git a/sys-fs/mdadm/files/raid-stop.sh b/sys-fs/mdadm/files/raid-stop.sh
deleted file mode 100644
index 79ca0a8e9a94..000000000000
--- a/sys-fs/mdadm/files/raid-stop.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-# /lib/rcscripts/addons/raid-stop.sh: Stop raid volumes at shutdown
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/files/raid-stop.sh,v 1.2 2006/11/10 00:27:07 vapier Exp $
-
-[[ -f /proc/mdstat ]] || exit 0
-
-# Stop software raid with raidtools (old school)
-if [[ -x /sbin/raidstop && -f /etc/raidtab ]] ; then
- ebegin "Shutting down RAID devices (raidtools)"
- output=$(raidstop -a 2>&1)
- ret=$?
- [[ ${ret} -ne 0 ]] && echo "${output}"
- eend ${ret}
-fi
-
-# Stop software raid with mdadm (new school)
-mdadm_conf="/etc/mdadm/mdadm.conf"
-[[ -e /etc/mdadm.conf ]] && mdadm_conf="/etc/mdadm.conf"
-if [[ -x /sbin/mdadm && -f ${mdadm_conf} ]] ; then
- ebegin "Shutting down RAID devices (mdadm)"
- output=$(mdadm -Ss 2>&1)
- ret=$?
- [[ ${ret} -ne 0 ]] && echo "${output}"
- eend ${ret}
-fi
-
-# vim:ts=4