From: kay.sievers@vrfy.org Date: Sun, 5 Sep 2004 16:05:32 +0000 (+0200) Subject: [PATCH] let /sbin/hotplug execute udev earlier X-Git-Tag: 031~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb7c281b8dfb4b1c53902b197c98ac7bd4c7e421;p=systemd [PATCH] let /sbin/hotplug execute udev earlier We ran into problems with all the /etc/hotplug.d/ scripts that sleep for the sysfs files or for other reasons. Anyway, it takes much too much time before udev is executed. HAL has its own notifier in /etc/hotplug.d/ and also waits for the dev.d/events with the same SEQNUM. Sometimes it take 25 seconds between these two events, cause the other scripts are sleeping too much :) Attached is a patch that installs the udevsend symlink as 10-udev.hotplug instead of udev.hotplug, to be executed earlier. [kay@pim udev.kay]$ tree /etc/hotplug.d/ /etc/hotplug.d/ `-- default |-- 10-udev.hotplug -> /sbin/udevsend |-- 20-hal.hotplug -> /usr/libexec/hal.hotplug `-- default.hotplug --- diff --git a/Makefile b/Makefile index d4d3ac8b..5083bed7 100644 --- a/Makefile +++ b/Makefile @@ -389,7 +389,7 @@ install: install-initscript install-config install-man install-dev.d all $(INSTALL_PROGRAM) -D $(INFO) $(DESTDIR)$(usrbindir)/$(INFO) $(INSTALL_PROGRAM) -D $(TESTER) $(DESTDIR)$(usrbindir)/$(TESTER) ln -sf $(sbindir)/udev $(DESTDIR)$(sbindir)/$(STARTER) - - ln -f -s $(sbindir)/$(SENDER) $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug + - ln -f -s $(sbindir)/$(SENDER) $(DESTDIR)$(hotplugdir)/10-udev.hotplug ifndef DESTDIR - killall udevd - rm -f $(udevdir)/.udev.tdb @@ -401,7 +401,7 @@ endif done ; \ uninstall: uninstall-man uninstall-dev.d - - rm $(hotplugdir)/udev.hotplug + - rm $(hotplugdir)/10-udev.hotplug - rm $(configdir)/rules.d/50-udev.rules - rm $(configdir)/permissions.d/50-udev.permissions - rm $(configdir)/udev.conf