diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2007-10-04 14:27:24 +0000 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2007-10-04 14:27:24 +0000 |
commit | be796eb23ccc83d7c5d62a4b85ff6a1a01be00ce (patch) | |
tree | 68b5a11177a7654bf5abc1218253c2c2dac30992 /sys-fs/mdadm/files/mdraid.rc-2.6.3-r3 | |
parent | Version bump for security bug #194711. (diff) | |
download | historical-be796eb23ccc83d7c5d62a4b85ff6a1a01be00ce.tar.gz historical-be796eb23ccc83d7c5d62a4b85ff6a1a01be00ce.tar.bz2 historical-be796eb23ccc83d7c5d62a4b85ff6a1a01be00ce.zip |
remove lvm from before check since this needs to be user configurable
Package-Manager: portage-2.1.3.11
Diffstat (limited to 'sys-fs/mdadm/files/mdraid.rc-2.6.3-r3')
-rw-r--r-- | sys-fs/mdadm/files/mdraid.rc-2.6.3-r3 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sys-fs/mdadm/files/mdraid.rc-2.6.3-r3 b/sys-fs/mdadm/files/mdraid.rc-2.6.3-r3 new file mode 100644 index 000000000000..622c40b1faa2 --- /dev/null +++ b/sys-fs/mdadm/files/mdraid.rc-2.6.3-r3 @@ -0,0 +1,26 @@ +#!/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.1 2007/10/04 14:27:24 cardoe Exp $ + +depend() { + if [ -e /lib/librc.so ]; then + # on baselayout-1 this could cause + # dependency-cycles with checkroot (before *) + before checkfs + 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 +} |