From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 18 Oct 2004 18:28:06 +0000 Subject: Re: cleanup netif handling and netif-dev.d/ events Message-Id: <20041018182806.GA23457@kroah.com> List-Id: References: <20041018181713.GA7487@vrfy.org> In-Reply-To: <20041018181713.GA7487@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Oct 18, 2004 at 08:17:13PM +0200, Kay Sievers wrote: > Here we supress the dev.d/ execution if we didn't change a network > interface's name with a rule. This should solve the issue of two > running dhclients for the same interface, cause the > /etc/dev.d/net/hotplug.dev script that fakes the hotplug event runs > with every udevstart for every interface and fakes a second identical > hotplug event on bootup. Huh? /etc/dev.d/net/hotplug.dev should contain the following three lines at the beginning to prevent this: # See if we really did rename this device. if [ "$INTERFACE" = "$DEVNAME" ]; then exit 0 fi right? What distro doesn't do this? Do we want to hardcode this logic inside udev itself now? > With this patch netif interfaces are no longer stored in the udevdb. > It is not needed, cause we don't have permissions or symlinks :) and > all information is available in sysfs. That's good. > This patch also moves the dev_d execution calls out of the > udev_add/udev_remove. As with the former api-cleanup-patch we have > all processed data in one udev struct and can place the execution > calls where needed. Very nice. Applied, thanks. greg k-h ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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