From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: cleanup netif handling and netif-dev.d/ events
Date: Mon, 18 Oct 2004 18:44:23 +0000 [thread overview]
Message-ID: <20041018184423.GC7487@vrfy.org> (raw)
In-Reply-To: <20041018181713.GA7487@vrfy.org>
On Mon, Oct 18, 2004 at 11:28:06AM -0700, Greg KH wrote:
> 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
I don't think that $INTERFACE is available to the dev.d/ scripts.
I will look into the hotplug "rename" event, if the uevent patches
reached the mainline kernel :)
> right? What distro doesn't do this?
>
> Do we want to hardcode this logic inside udev itself now?
No, if we don't create a node, or don't rename a netif, we just don't
call dev.d/ now.
Kay
-------------------------------------------------------
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
next prev parent reply other threads:[~2004-10-18 18:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-18 18:17 cleanup netif handling and netif-dev.d/ events Kay Sievers
2004-10-18 18:28 ` Greg KH
2004-10-18 18:44 ` Kay Sievers [this message]
2004-10-18 19:51 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041018184423.GC7487@vrfy.org \
--to=kay.sievers@vrfy.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).