#!/bin/sh

PREREQ="evms"

prereqs()
{
	echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac

if ! grep -q '\bevms_debug\b' /proc/cmdline; then
	exit
fi

# We need an /etc/mtab for at least resize2fs.
if ! [ -r /etc/mtab ]; then
	cp /proc/mounts /etc/mtab
fi

PATH=/sbin /sbin/evmsn

echo Spawning a shell, allowing you to do any other operations you need.
echo Use ^D to exit the shell and continue normal boot, or run /sbin/evms
echo to get back into the EVMS interface.
PATH=$PATH:/sbin sh
