From eabfc9736703ce0dc81b233d78821d408aa565f2 Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Mon, 20 Dec 2004 08:57:31 +0100 Subject: [PATCH] handle renamed network interfaces properly if we manage hotplug.d/ If we take over the hotplug call and manage the events we don't need to call the event fake script in dev.d/. Just set all expected values to the new network interface name and call hotplug.d/. This way the device renaming is completely handled inside of udev and userspace can't get confused. --- udevsend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'udevsend.c') diff --git a/udevsend.c b/udevsend.c index 74cc09b330..05a50facc5 100644 --- a/udevsend.c +++ b/udevsend.c @@ -154,7 +154,7 @@ int main(int argc, char *argv[], char *envp[]) } /* prevent loops in the scripts we execute */ - if (strncmp(key, "MANAGED_EVENT=", 14) == 0) { + if (strncmp(key, "UDEVD_EVENT=", 12) == 0) { dbg("seems that the event source is not the kernel, just exit"); goto exit; } -- cgit v1.2.3-54-g00ecf