#!/bin/sh


prereqs()
{
	# this part has been borrowed from the script local-top/cryptroot
	# Make sure that we are run last in init-top
	for req in $(dirname $0)/*; do
		script=${req##*/}
		if [ $script != $(basename $0) ]; then
			echo $script
		fi
	done
}

case $1 in
prereqs)
	prereqs
	exit 0
	;;
esac

icount=0
while [ ! -e /dev/disk/by-path ] && [ $icount -lt 100 ] ; do
    /bin/sleep 0.1
    icount=$(( $icount + 1))
done

exit 0
