From mboxrd@z Thu Jan 1 00:00:00 1970 From: martin f krafft Date: Sun, 26 Dec 2004 11:28:50 +0000 Subject: how does udev rename an interface? Message-Id: <20041226112849.GA8995@fishbowl> MIME-Version: 1 Content-Type: multipart/mixed; boundary="NzB8fVQJ5HfG6fxh" List-Id: To: linux-hotplug@vger.kernel.org --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable udev has the ability to rename network interfaces. At least on my system, udevsend is called from /etc/hotplug.d/default. A network device usually triggers two hotplug events, the first for the device, and the second for the network interface. Therefore, udev runs twice, but network interface renaming only makes sense during the second invocation, since it only applies to network interfaces. I have two questions about how udev handles this: - /etc/hotplug.d/net/*.hotplug are run before udevsend is called from /etc/hotplug.d/default. Thus, if a tool such as ifplugd already configures the network interface with /etc/hotplug.d/net, udev effectively cannot change the interface name because the interface is in use. - even if udev changes the interface name, how does it communicate the new name to net.agent and all the other hook scripts? The interface name is stored in $INTERFACE in the environment of the hotplug process, and udev cannot change that environment (or can it?). How does udev deal with this? Thanks, --=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 if it's there, and you can see it, it's real. if it's not there, and you can see it, it's virtual. if it's there, and you can't see it, it's transparent. if it's not there, and you can't see it, you erased it. --NzB8fVQJ5HfG6fxh 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) iD8DBQFBzqBxIgvIgzMMSnURAiAeAKCmArIbl4ebID2NPPZWLu8K8JsD1wCg3eei RWGo+UROWBikiHJNbX4C188= =Spy/ -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh-- ------------------------------------------------------- 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