From mboxrd@z Thu Jan 1 00:00:00 1970 From: martin f krafft Date: Sun, 26 Dec 2004 13:30:00 +0000 Subject: Re: how does udev rename an interface? Message-Id: <20041226133000.GA12391@fishbowl> MIME-Version: 1 Content-Type: multipart/mixed; boundary="sdtB3X0nJg68CQEu" List-Id: References: <20041226112849.GA8995@fishbowl> In-Reply-To: <20041226112849.GA8995@fishbowl> To: linux-hotplug@vger.kernel.org --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable also sprach Kay Sievers [2004.12.26.1333 +0100]: > Right, if something brings up the netif earlier, udev can't do > anything. Therefore, ifplugd should really not be called in hotplug.d, but through net.agent, huh? > On a successful rename, udev calls the /etc/dev.d/net/hotplug.dev > script, which calls the /etc/hotplug.d/default/default.hotplug > again with the corrected environment. =46rom what I understand, udevsend is only one hook that is run, and hotplug simply runs the next on competion. udevsend must therefore somehow tell hotplug to abort the processing of remaining hooks before invoking the /dev/dev.d script again. How does it do that? With a non-zero exit code? I am sorry for asking these questions... I am currently on an ass-slow machine in my parents' house, and it would take me an hour to figure this out... mutt takes 25 seconds to spawn. :/ > If /sbin/udevsend is used as the hotplug helper and udevd manages > the complete hotplug event, only one correct hotplug netif call is > visible to the hotplug scripts. The one for the old name will be > "converted" to carry the new name and no second event needs to be > faked. Right, /etc/dev.d/net/hotplug.dev is the secret. It executes: exec /etc/hotplug.d/default/default.hotplug net if the interface was renamed. If I can figure out how it stops the hotplug instance that invoked udev from running further hooks, we got a winner. Cheers, --=20 martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck =20 invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver! spamtraps: madduck.bogus@madduck.net =20 man muss noch chaos in sich haben um einen tanzenden stern zu geb=E4hren. -- friedrich nietzsche --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBzrzYIgvIgzMMSnURAlXTAJ9jGY2cUuJ/zrlo6P8rOVH9HCM1awCfWYSn Z7l3C6i4ki1lSqu8Ms6UM0Y= =+mAG -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ 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