Skip to contentSkip to conversation

udev - kill udevd on install

PATCH Kay Sievers 3 participants 5 messages Feb 28, 2004 – Mar 18, 2004 Kbuild

lore
Share & tools
lore
#0 lore raw

We want to kill udevd after installing a new version, cause the event contains a magic with the version number of udev.

thanks,
Kay

===== Makefile 1.122 vs edited =====

Makefile +5 -3
@@ -373,10 +373,12 @@
 	$(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
+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)" \
#1 lore raw
Quoted 9 lines · Kay Sievers

We want to kill udevd after installing a new version, cause the event contains a magic with the version number of udev.

thanks,
Kay

=== Makefile 1.122 vs edited ==> --- 1.122/Makefile Sat Feb 28 02:59:43 2004
+++ edited/Makefile Sat Feb 28 04:25:36 2004

Makefile line 377

Quoted 5 lines
Makefile +0 -2
@@ -373,10 +373,12 @@
 	$(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

Why take away this line? It's needed if the symlink is set up "wrong" (like pointing to udev instead of udevsend like old systems would have...)

thanks,

greg k-h

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Kay Sievers
Quoted 7 lines · Greg KH
Quoted 5 lines · Kay Sievers

We want to kill udevd after installing a new version, cause the event contains a magic with the version number of udev.

thanks,
Kay

Quoted 12 lines

Makefile line 377

Quoted 8 lines

=== Makefile 1.122 vs edited ==> > --- 1.122/Makefile Sat Feb 28 02:59:43 2004
+++ edited/Makefile Sat Feb 28 04:25:36 2004

Makefile +0 -2
@@ -373,10 +373,12 @@
 	$(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

Why take away this line? It's needed if the symlink is set up "wrong" (like pointing to udev instead of udevsend like old systems would have...)

..., cause it's not needed. The "-f" of the following line should be enough to replace any already existing link:

- ln -f -s $(sbindir)/$(SENDER) $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug

thanks,
Kay

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
In reply to Kay Sievers
Quoted 21 lines · Kay Sievers
Quoted 7 lines · Greg KH
Quoted 5 lines · Kay Sievers

We want to kill udevd after installing a new version, cause the event contains a magic with the version number of udev.

thanks,
Kay

Quoted 12 lines

Makefile line 377

Quoted 8 lines

=== Makefile 1.122 vs edited ==> > > --- 1.122/Makefile Sat Feb 28 02:59:43 2004
+++ edited/Makefile Sat Feb 28 04:25:36 2004

Makefile +0 -2
@@ -373,10 +373,12 @@
 	$(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

Why take away this line? It's needed if the symlink is set up "wrong" (like pointing to udev instead of udevsend like old systems would have...)

Quoted 4 lines

..., cause it's not needed. The "-f" of the following line should be enough to replace any already existing link:

- ln -f -s $(sbindir)/$(SENDER) $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug

Hm, ok, I can't remember why I didn't realize that a while ago...

Oh well, applied, thanks.

greg k-h

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#4 lore raw
In reply to Kay Sievers

Okok, remove my last rant from your memory :) thx!

Quoted 7 lines · Kay Sievers

We want to kill udevd after installing a new version, cause the event contains a magic with the version number of udev.

Makefile +4 -0
+ifndef DESTDIR
+	- killall udevd
+	- rm -f $(udevdir)/.udev.tdb
+endif