Skip to contentSkip to conversation

/usr/sbin/udev support

PATCH New Marco d'Itri 1 participant 1 message Mar 23, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 /usr/sbin/udev support

Even if this is probably not appropriate for the upstream package I'm posting it to show how easy it was to support two different daemons. So far no debian user has complained.

Signature · 2 lines
ciao, |
Marco | [5278 abcb4SD7HHbzI]
udevd.c +5 -0
diff -ruNp udev-022.orig/udevd.c udev-022/udevd.c
@@ -130,6 +130,11 @@ static void udev_run(struct hotplug_msg 
 	switch (pid) {
 	case 0:
 		/* child */
+		if (execle("/usr" UDEV_BIN, "udev", msg->subsystem, NULL,
+			    env) < 0 && errno != ENOENT) {
+		    dbg("exec of child failed");
+		    exit(1);
+		}
 		execle(UDEV_BIN, "udev", msg->subsystem, NULL, env);
 		dbg("exec of child failed");
 		exit(1);