summaryrefslogtreecommitdiff
path: root/pcr/openrc-base/mdraid.rc
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-06-23 03:13:28 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-06-23 03:13:28 -0500
commit6f1180f35fee220f92044e8f8a0a220ff308b295 (patch)
treeb6899369633ce3051d62f9f4cd5d81217f158d35 /pcr/openrc-base/mdraid.rc
parentc2575baf97c888d66a7fef69a84b5718dbab28c9 (diff)
downloadabslibre-6f1180f35fee220f92044e8f8a0a220ff308b295.tar.gz
abslibre-6f1180f35fee220f92044e8f8a0a220ff308b295.tar.bz2
abslibre-6f1180f35fee220f92044e8f8a0a220ff308b295.zip
{cronie,cryptsetup,dbus,device,dhcpcd,glibc,inetutils,lvm2,mdadm}-openrc-20150613-1: updating version
Diffstat (limited to 'pcr/openrc-base/mdraid.rc')
-rw-r--r--pcr/openrc-base/mdraid.rc40
1 files changed, 0 insertions, 40 deletions
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}"
-}