* [gentoo-commits] gentoo-x86 commit in sys-fs/lvm2/files: device-mapper.rc-1.02.51-r2 lvm.rc-2.02.51-r2
@ 2009-10-27 15:34 Matthias Schwarzott (zzam)
0 siblings, 0 replies; only message in thread
From: Matthias Schwarzott (zzam) @ 2009-10-27 15:34 UTC (permalink / raw
To: gentoo-commits
zzam 09/10/27 15:34:08
Added: device-mapper.rc-1.02.51-r2 lvm.rc-2.02.51-r2
Log:
No longer use deprecated (start|stop)_addon, but directly call the relevant files.
(Portage version: 2.2_rc46/cvs/Linux i686)
Revision Changes Path
1.1 sys-fs/lvm2/files/device-mapper.rc-1.02.51-r2
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/files/device-mapper.rc-1.02.51-r2?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/files/device-mapper.rc-1.02.51-r2?rev=1.1&content-type=text/plain
Index: device-mapper.rc-1.02.51-r2
===================================================================
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/files/device-mapper.rc-1.02.51-r2,v 1.1 2009/10/27 15:34:08 zzam Exp $
depend() {
# necessary for services when using baselayout-2
# but conflict for baselayout-1
if [ -e /etc/init.d/root ] ; then
after modules
before checkfs fsck
fi
}
start() {
if [ ! -e /etc/init.d/root ] ; then
eerror "The ${SVCNAME} init script is written for baselayout-2"
eerror "Please do not use it with baselayout-1"
return 1
fi
local f=/lib/rcscripts/addons/dm-start.sh
if [ -r "$f" ]; then
( . "$f" )
fi
}
1.1 sys-fs/lvm2/files/lvm.rc-2.02.51-r2
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/files/lvm.rc-2.02.51-r2?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/files/lvm.rc-2.02.51-r2?rev=1.1&content-type=text/plain
Index: lvm.rc-2.02.51-r2
===================================================================
#!/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/lvm2/files/lvm.rc-2.02.51-r2,v 1.1 2009/10/27 15:34:08 zzam Exp $
depend() {
if [ -f /etc/init.d/sysfs ]; then
# on baselayout-1 this causes
# dependency-cycles with checkroot (before *)
before checkfs fsck
after modules device-mapper
fi
}
run_addon() {
local f=/lib/rcscripts/addons/$1.sh
if [ -r "$f" ]; then
( . "$f" )
fi
}
start() {
if [ ! -f /etc/init.d/sysfs ]; then
eerror "The $SVCNAME init-script is written for baselayout-2!"
eerror "Please do not use it with baselayout-1!".
return 1
fi
run_addon lvm-start
}
stop() {
run_addon lvm-stop
}
# vim:ts=4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-27 15:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-27 15:34 [gentoo-commits] gentoo-x86 commit in sys-fs/lvm2/files: device-mapper.rc-1.02.51-r2 lvm.rc-2.02.51-r2 Matthias Schwarzott (zzam)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox