2009-02-19 16:10:13 +01:00
|
|
|
#!/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
|
2010-04-23 11:58:14 +02:00
|
|
|
echo > /sys/kernel/uevent_helper
|
2009-02-19 16:10:13 +01:00
|
|
|
|
|
|
|
# Start the udev daemon to process events
|
2010-04-23 11:58:14 +02:00
|
|
|
udevd --daemon --resolve-names=never
|
2009-02-19 16:10:13 +01:00
|
|
|
|
|
|
|
# Iterate sysfs and fire off everything; if we include a rule for it then
|
|
|
|
# it'll get handled; otherwise it'll get handled later when we do this again
|
|
|
|
# in the main boot sequence.
|
2010-04-23 11:58:14 +02:00
|
|
|
mkdir -p /dev/.udev/queue/
|
|
|
|
udevadm trigger --action=add
|
|
|
|
udevadm settle || true
|
|
|
|
|
|
|
|
if [ -d /sys/bus/scsi ]; then
|
|
|
|
modprobe -q scsi_wait_scan && modprobe -r scsi_wait_scan || true
|
|
|
|
udevadm settle || true
|
|
|
|
fi
|