00-devmgr.sh: do not set the hotplug handler, Gentoo bug #493874

systemd will not work, and setting it to /sbin/mdev doesn't work either
since 99% of the non-systemd systems use udev/eudev.
If you really want to set the hotplug handler, do it in the kernel
config.
master v52
Fabio Erculiani 11 years ago
parent 53dbd52ba4
commit 7085ad2b32

@ -17,16 +17,11 @@ is_mdev() {
devmgr_init() { devmgr_init() {
if is_udev; then if is_udev; then
good_msg "Activating udev" good_msg "Activating udev"
echo "${UDEVD}" > /proc/sys/kernel/hotplug
echo "" > /sys/kernel/uevent_helper
"${UDEVD}" --daemon --resolve-names=never && \ "${UDEVD}" --daemon --resolve-names=never && \
udevadm trigger --action=add && \ udevadm trigger --action=add && \
udevadm settle || bad_msg "udevd failed to run" udevadm settle || bad_msg "udevd failed to run"
elif is_mdev; then elif is_mdev; then
good_msg "Activating mdev" good_msg "Activating mdev"
# Serialize hotplug events
touch /dev/mdev.seq
echo "${MDEVD}" > /proc/sys/kernel/hotplug
# Ensure that device nodes are properly configured # Ensure that device nodes are properly configured
"${MDEVD}" -s || bad_msg "mdev -s failed" "${MDEVD}" -s || bad_msg "mdev -s failed"
else else

Loading…
Cancel
Save