From 6f1180f35fee220f92044e8f8a0a220ff308b295 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Tue, 23 Jun 2015 03:13:28 -0500 Subject: {cronie,cryptsetup,dbus,device,dhcpcd,glibc,inetutils,lvm2,mdadm}-openrc-20150613-1: updating version --- pcr/openrc-base/mdraid.rc | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 pcr/openrc-base/mdraid.rc (limited to 'pcr/openrc-base/mdraid.rc') diff --git a/pcr/openrc-base/mdraid.rc b/pcr/openrc-base/mdraid.rc deleted file mode 100644 index 27421e26e..000000000 --- a/pcr/openrc-base/mdraid.rc +++ /dev/null @@ -1,40 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/files/mdraid.rc,v 1.6 2011/11/12 21:06:44 vapier Exp $ - -depend() { - before checkfs fsck - after modules -} - -start() { - local output - - ebegin "Starting up RAID devices" - output=$(mdadm -As 2>&1) - eend $? "${output}" - - local pat="/dev/md_d*" - set -- ${pat} - if [ "$*" != "${pat}" ] ; then - ebegin "Creating RAID device partitions" - blockdev "$@" - eend $? - # wait because vgscan runs next, and we want udev to fire - sleep 1 - fi - - return 0 -} - -stop() { - local output - - # XXX: Maybe drop this check ? - [ ! -e /etc/mdadm/mdadm.conf ] && [ ! -e /etc/mdadm.conf ] && return 0 - - ebegin "Shutting down RAID devices (mdadm)" - output=$(mdadm -Ss 2>&1) - eend $? "${output}" -} -- cgit v1.2.3