summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-06-28 16:31:02 +0000
committerMike Frysinger <vapier@gentoo.org>2008-06-28 16:31:02 +0000
commitc541feaeb69dced3f28ecf366d7dd054b566e657 (patch)
tree5e2297fe97dc09316c78f3c8b7c0339e8b79ff31 /sys-fs/mdadm/files
parentVersion bump. (diff)
downloadhistorical-c541feaeb69dced3f28ecf366d7dd054b566e657.tar.gz
historical-c541feaeb69dced3f28ecf366d7dd054b566e657.tar.bz2
historical-c541feaeb69dced3f28ecf366d7dd054b566e657.zip
old
Package-Manager: portage-2.2_rc1/cvs/Linux 2.6.25 x86_64
Diffstat (limited to 'sys-fs/mdadm/files')
-rw-r--r--sys-fs/mdadm/files/mdraid.rc26
-rw-r--r--sys-fs/mdadm/files/mdraid.rc-2.6.3-r326
-rwxr-xr-xsys-fs/mdadm/files/raid-start.sh55
-rw-r--r--sys-fs/mdadm/files/raid-start.sh-2.6.3-r251
-rw-r--r--sys-fs/mdadm/files/raid-start.sh-2.6.3-r451
-rw-r--r--sys-fs/mdadm/files/raid-stop.sh28
6 files changed, 0 insertions, 237 deletions
diff --git a/sys-fs/mdadm/files/mdraid.rc b/sys-fs/mdadm/files/mdraid.rc
deleted file mode 100644
index 0b53664f3103..000000000000
--- a/sys-fs/mdadm/files/mdraid.rc
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2007 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.2 2008/02/01 12:42:12 flameeyes Exp $
-
-depend() {
- if [ -e /lib/librc.so ]; then
- # on baselayout-1 this could cause
- # dependency-cycles with checkroot (before *)
- before checkfs fsck lvm
- fi
-}
-
-start() {
- if [ ! -e /lib/librc.so ]; then
- eerror "The ${SVCNAME} init script is written for baselayout-2"
- eerror "Please do not use it with baselayout-1"
- return 1
- fi
-
- start_addon raid
-}
-
-stop() {
- stop_addon raid
-}
diff --git a/sys-fs/mdadm/files/mdraid.rc-2.6.3-r3 b/sys-fs/mdadm/files/mdraid.rc-2.6.3-r3
deleted file mode 100644
index dab6b70d18e7..000000000000
--- a/sys-fs/mdadm/files/mdraid.rc-2.6.3-r3
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/files/mdraid.rc-2.6.3-r3,v 1.2 2008/02/01 12:42:12 flameeyes Exp $
-
-depend() {
- if [ -e /lib/librc.so ]; then
- # on baselayout-1 this could cause
- # dependency-cycles with checkroot (before *)
- before checkfs fsck
- fi
-}
-
-start() {
- if [ ! -e /lib/librc.so ]; then
- eerror "The ${SVCNAME} init script is written for baselayout-2"
- eerror "Please do not use it with baselayout-1"
- return 1
- fi
-
- start_addon raid
-}
-
-stop() {
- stop_addon raid
-}
diff --git a/sys-fs/mdadm/files/raid-start.sh b/sys-fs/mdadm/files/raid-start.sh
deleted file mode 100755
index 0ada6a8bf0a2..000000000000
--- a/sys-fs/mdadm/files/raid-start.sh
+++ /dev/null
@@ -1,55 +0,0 @@
-# /lib/rcscripts/addons/raid-start.sh: Setup raid volumes at boot
-# 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-start.sh,v 1.5 2006/11/10 00:27:07 vapier Exp $
-
-[[ -f /proc/mdstat ]] || exit 0
-
-# We could make this dynamic, but eh
-#[[ -z ${MAJOR} ]] && export MAJOR=$(awk '$2 == "md" { print $1 }' /proc/devices)
-MAJOR=9
-
-# Try to make sure the devices exist before we use them
-create_devs() {
- local node dir minor
- for node in $@ ; do
- [[ ${node} != /dev/* ]] && node=/dev/${node}
- [[ -e ${node} ]] && continue
-
- dir=${node%/*}
- [[ ! -d ${dir} ]] && mkdir -p "${dir}"
-
- minor=${node##*/}
- mknod "${node}" b ${MAJOR} ${minor##*md} &> /dev/null
- done
-}
-
-# Start software raid with raidtools (old school)
-if [[ -x /sbin/raidstart && -f /etc/raidtab ]] ; then
- devs=$(awk '/^[[:space:]]*raiddev/ { print $2 }' /etc/raidtab)
- if [[ -n ${devs} ]] ; then
- create_devs ${devs}
- ebegin "Starting up RAID devices (raidtools)"
- output=$(raidstart -aq 2>&1)
- ret=$?
- [[ ${ret} -ne 0 ]] && echo "${output}"
- eend ${ret}
- fi
-fi
-
-# Start 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
- devs=$(awk '/^[[:space:]]*ARRAY/ { print $2 }' ${mdadm_conf})
- if [[ -n ${devs} ]] ; then
- create_devs ${devs}
- ebegin "Starting up RAID devices (mdadm)"
- output=$(mdadm -As 2>&1)
- ret=$?
- [[ ${ret} -ne 0 ]] && echo "${output}"
- eend ${ret}
- fi
-fi
-
-# vim:ts=4
diff --git a/sys-fs/mdadm/files/raid-start.sh-2.6.3-r2 b/sys-fs/mdadm/files/raid-start.sh-2.6.3-r2
deleted file mode 100644
index 0f8060df93b8..000000000000
--- a/sys-fs/mdadm/files/raid-start.sh-2.6.3-r2
+++ /dev/null
@@ -1,51 +0,0 @@
-# /lib/rcscripts/addons/raid-start.sh: Setup raid volumes at boot
-# 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-start.sh-2.6.3-r2,v 1.1 2007/10/03 11:58:45 robbat2 Exp $
-
-[ -f /proc/mdstat ] || exit 0
-
-# We could make this dynamic, but eh
-#[ -z ${MAJOR} ] && export MAJOR=$(awk '$2 == "md" { print $1 }' /proc/devices)
-MAJOR=9
-
-# Try to make sure the devices exist before we use them
-create_devs() {
- local node dir minor
- for node in $@ ; do
- [ "${node#/dev}" != "${node}" ] && node="/dev/${node}"
- [ -e "${node}" ] && continue
-
- dir="${node%/*}"
- [ ! -d "${dir}" ] && mkdir -p "${dir}"
-
- minor="${node##*/}"
- mknod "${node}" b ${MAJOR} "${minor##*md}" &> /dev/null
- done
-}
-
-# Start 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 -a -f "${mdadm_conf}" ] ; then
- devs="$(awk '/^[[:space:]]*ARRAY/ { print $2 }' ${mdadm_conf})"
- if [ -n "${devs}" ]; then
- create_devs ${devs}
- ebegin "Starting up RAID devices (mdadm)"
- output=$(mdadm -As 2>&1)
- ret=$?
- [ ${ret} -ne 0 ] && echo "${output}"
- eend ${ret}
- fi
-fi
-
-partitioned_devs="$(find /dev -maxdepth 1 -name 'md_d*')"
-if [ -n "${partitioned_devs}" ]; then
- ebegin "Creating RAID device partitions"
- /sbin/blockdev ${partitioned_devs}
- eend 0
- # wait because vgscan runs next, and we want udev to fire
- sleep 1
-fi
-
-# vim:ts=4
diff --git a/sys-fs/mdadm/files/raid-start.sh-2.6.3-r4 b/sys-fs/mdadm/files/raid-start.sh-2.6.3-r4
deleted file mode 100644
index 96c29952ef3a..000000000000
--- a/sys-fs/mdadm/files/raid-start.sh-2.6.3-r4
+++ /dev/null
@@ -1,51 +0,0 @@
-# /lib/rcscripts/addons/raid-start.sh: Setup raid volumes at boot
-# 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-start.sh-2.6.3-r4,v 1.1 2007/10/08 21:07:07 robbat2 Exp $
-
-[ -f /proc/mdstat ] || exit 0
-
-# We could make this dynamic, but eh
-#[ -z ${MAJOR} ] && export MAJOR=$(awk '$2 == "md" { print $1 }' /proc/devices)
-MAJOR=9
-
-# Try to make sure the devices exist before we use them
-create_devs() {
- local node dir minor
- for node in $@ ; do
- [ "${node#/dev}" != "${node}" ] && node="/dev/${node}"
- [ -e "${node}" ] && continue
-
- dir="${node%/*}"
- [ ! -d "${dir}" ] && mkdir -p "${dir}"
-
- minor="${node##*/}"
- mknod "${node}" b ${MAJOR} "${minor##*md}" &> /dev/null
- done
-}
-
-# Start 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 -a -f "${mdadm_conf}" ] ; then
- devs="$(awk '/^[[:space:]]*ARRAY/ { print $2 }' ${mdadm_conf})"
- if [ -n "${devs}" ]; then
- create_devs ${devs}
- ebegin "Starting up RAID devices (mdadm)"
- output=$(mdadm -As 2>&1)
- ret=$?
- [ ${ret} -ne 0 ] && echo "${output}"
- eend ${ret}
- fi
-fi
-
-partitioned_devs="$(ls /dev/md_d* 2>/dev/null)"
-if [ -n "${partitioned_devs}" ]; then
- ebegin "Creating RAID device partitions"
- /sbin/blockdev ${partitioned_devs}
- eend 0
- # wait because vgscan runs next, and we want udev to fire
- sleep 1
-fi
-
-# vim:ts=4
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