# /lib/rcscripts/addons/raid-stop.sh: Stop raid volumes at shutdown # $Header: $ [[ -f /proc/mdstat ]] || exit 0 # Stop software raid with raidtools (old school) #if [[ -x /sbin/raidstart && -f /etc/raidtab ]] ; then # TODO #fi # Stop software raid with mdadm (new school) if [[ -x /sbin/mdadm && -f /etc/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