#
# lvm		This script handles the LVM startup/shutdown
#		so that LVMs are properly configured and available.
#

[ -f /proc/lvm ] || exit 0
[ -f /etc/lvmtab ] || exit 0
[ -x /sbin/vgscan ] || exit 0

case "$1" in
	start|"")
		echo "Setting up LVM Volume Groups..."
		#/sbin/vgscan
		/sbin/vgchange -a y
		;;
	
	stop)
		echo "Shutting down LVM Volume Groups... "
		/sbin/vgchange -a n
		;;
	
	*)
		echo "Usage: lvm {start|stop}" >&2
		exit 1
		;;
esac
