blob: 052939ce53358c0b2e1cd149549251ea618a0169 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/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/device-mapper/files/device-mapper.rc-1.02.22-r3,v 1.4 2007/10/09 02:28:17 robbat2 Exp $
depend() {
if [ -e /lib/librc.so ]; then
# on baselayout-1 this causes
# a dependency loop with checkroot (before *)
after modules
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 dm
}
|