#!/bin/sh -e
# initramfs premount script for udev

PREREQ=""

# Output pre-requisites
prereqs()
{
	echo "$PREREQ"
}

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


# It's all over netlink now
echo "" > /proc/sys/kernel/hotplug
	
# Start the udev daemon to process events
/sbin/udevd --daemon

# Each call to udevplug can take up to three minutes
if [ -x /sbin/usplash_write ]; then
    /sbin/usplash_write "TIMEOUT 180"
    trap "/sbin/usplash_write 'TIMEOUT 15'" 0
fi

# We need to get all the basic /dev devices in place, and deal with
# the elmos of the world who've compiled various bus drivers into the
# kernel already.  On normal systems these buses won't even exist at this
# point.
/sbin/udevtrigger -Bide -Bscsi -Bi2o -Busb -Bieee1394 \
    -Cscsi_device -Cusb_host -Cusb_device -Cmem -Cmisc -Ctty -Cvc -b
