summaryrefslogtreecommitdiff
blob: 8854845d5995bcea45f42c7f5dc920d086e8d71e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# /lib/rcscripts/addons/lvm-user-stop.sh
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm-user/files/lvm-user-stop.sh,v 1.1 2005/02/23 03:47:44 rocket Exp $

# Stop LVM

if [ -x /sbin/vgchange ] && [ -f /etc/lvmtab -o -d /etc/lvm ] && \
	[ -d /proc/lvm  -o "`grep device-mapper /proc/misc 2>/dev/null`" ]
then
	ebegin "Shutting down the Logical Volume Manager"
	/sbin/vgchange -a n >/dev/null
	eend $? "Failed to shut LVM down"
fi

# vim:ts=4