Serialize hotplug events to mimic udev

cleanup-cruft
Richard Yao 13 years ago
parent 5ce01e863f
commit 51ad5c92ab

@ -404,13 +404,6 @@ prompt_user(){
esac esac
} }
setup_hotplug() {
if [ "${KV_2_6_OR_GREATER}" ]
then
echo /sbin/mdev > /proc/sys/kernel/hotplug
fi
}
setup_slowusb() { setup_slowusb() {
# This function removes unset DO_slowusb if there is no usb-storage attached. # This function removes unset DO_slowusb if there is no usb-storage attached.
# If noslowusb is set, skip this function # If noslowusb is set, skip this function

@ -277,13 +277,18 @@ mount_devfs
# Mount sysfs # Mount sysfs
mount_sysfs mount_sysfs
# Setup hotplugging for firmware loading
setup_hotplug
# Start mdev # Start mdev
if [ "${KV_2_6_OR_GREATER}" ] if [ "${KV_2_6_OR_GREATER}" ]
then then
good_msg 'Activating mdev' good_msg 'Activating mdev'
# Serialize hotplug events
touch /dev/mdev.seq
# Setup hotplugging for firmware loading
echo /sbin/mdev > /proc/sys/kernel/hotplug
# Setup mdev netlink socket daemon
( cd /sys && mdev -s ) || bad_msg "Failed to receive dynamic updates from mdev" ( cd /sys && mdev -s ) || bad_msg "Failed to receive dynamic updates from mdev"
fi fi

Loading…
Cancel
Save