diff options
Diffstat (limited to 'sys-fs/mdadm/files/raid-stop.sh')
-rw-r--r-- | sys-fs/mdadm/files/raid-stop.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys-fs/mdadm/files/raid-stop.sh b/sys-fs/mdadm/files/raid-stop.sh index 412f80c264f1..79ca0a8e9a94 100644 --- a/sys-fs/mdadm/files/raid-stop.sh +++ b/sys-fs/mdadm/files/raid-stop.sh @@ -1,7 +1,7 @@ # /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.1 2005/06/10 01:35:55 vapier Exp $ +# $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 @@ -15,7 +15,9 @@ if [[ -x /sbin/raidstop && -f /etc/raidtab ]] ; then fi # Stop software raid with mdadm (new school) -if [[ -x /sbin/mdadm && -f /etc/mdadm.conf ]] ; then +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=$? |