chiark / gitweb /
[PATCH] udev - kill udevd on install
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Tue, 2 Mar 2004 06:23:35 +0000 (22:23 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:34:28 +0000 (21:34 -0700)
We want to kill udevd after installing a new version, cause the event
contains a magic with the version number of udev.

Makefile

index 9f7c439974a24631dd7111e0abb8e2493048264b..739b9c1351d323763d4db30eb11aea819de8257b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -373,10 +373,12 @@ install: install-config install-dbus-policy all
        $(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
        $(INSTALL_DATA) -D udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
        $(INSTALL_DATA) -D udevd.8 $(DESTDIR)$(mandir)/man8/udevd.8
        $(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
        $(INSTALL_DATA) -D udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
        $(INSTALL_DATA) -D udevd.8 $(DESTDIR)$(mandir)/man8/udevd.8
-       - ln -f -s ./udevd.8 $(DESTDIR)$(mandir)/man8/udevsend.8
-       - rm -f $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug
-       - rm -f $(DESTDIR)$(udevdir)/.udev.tdb
+       - ln -f -s udevd.8 $(DESTDIR)$(mandir)/man8/udevsend.8
        - ln -f -s $(sbindir)/$(SENDER) $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug
        - ln -f -s $(sbindir)/$(SENDER) $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug
+ifndef DESTDIR
+       - killall udevd
+       - rm -f $(udevdir)/.udev.tdb
+endif
        @extras="$(EXTRAS)" ; for target in $$extras ; do \
                echo $$target ; \
                $(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
        @extras="$(EXTRAS)" ; for target in $$extras ; do \
                echo $$target ; \
                $(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \