aboutsummaryrefslogtreecommitdiff
blob: c95d1f06df2d8fa48d536a44ffc46ace16d1bdfe (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
25
26
#!/sbin/openrc-run
# Copyright 1999-2013 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.95-r2,v 1.2 2013/04/09 11:00:26 ssuominen Exp $

depend() {
	use dmeventd
	before checkfs fsck
	after modules device-mapper
}

run_addon() {
	local f="/lib/rcscripts/addons/${1}.sh"

	if [ -r "${f}" ]; then
		( . "${f}" )
	fi
}

start() {
	run_addon lvm-start
}

stop() {
	run_addon lvm-stop
}