* [patch] let /sbin/hotplug execute udev earlier
@ 2004-08-29 20:51 Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2004-08-29 20:51 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 703 bytes --]
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
Thanks,
Kay
[-- Attachment #2: udev-hotplug-link-01.patch --]
[-- Type: text/plain, Size: 822 bytes --]
===== Makefile 1.165 vs edited =====
--- 1.165/Makefile 2004-08-05 00:50:52 +02:00
+++ edited/Makefile 2004-08-29 22:39:47 +02:00
@@ -389,7 +389,7 @@
$(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 @@
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] let /sbin/hotplug execute udev earlier
@ 2004-09-05 8:07 Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-09-05 8:07 UTC (permalink / raw)
To: linux-hotplug
On Sun, Aug 29, 2004 at 10:51:56PM +0200, Kay Sievers wrote:
> 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
That makes sense. Applied, thanks.
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id\x10808&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-05 8:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-29 20:51 [patch] let /sbin/hotplug execute udev earlier Kay Sievers
-- strict thread matches above, loose matches on Subject: below --
2004-09-05 8:07 Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).