From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Borzenkov Date: Sun, 13 May 2007 18:04:27 +0000 Subject: Re: can't rename eth1, but udevmonitor says it is Message-Id: <200705132204.31689.arvidjaar@mail.ru> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1448279031==" List-Id: References: In-Reply-To: To: linux-hotplug@vger.kernel.org --===============1448279031== Content-Type: multipart/signed; boundary="nextPart1985986.KRxxcEeTKe"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1985986.KRxxcEeTKe Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 13 May 2007, sean darcy wrote: > But what I really wanted to do was create a symlink, so I tried: > > KERNEL=3D=3D"eth*", SYSFS{address}=3D=3D"00:a0:24:54:28:cb", SYMLINK+=3D"= lan", > OPTIONS=3D"last_rule" > > This failed. Only eth1 was created. > you can't create symlink to interface. You can only rename it (NAME=3D"lan"= ). If=20 this does not work there is some bug somewhere; it works here (udev 110): SUBSYSTEM=3D=3D"net", ACTION=3D=3D"add", ENV{INTERFACE}!=3D"*.*",=20 SYSFS{address}=3D=3D"00:00:39:d7:14:a1", NAME=3D"lan", ENV{MDV_CONFIGURED}= =3D"yes" {pts/0}% sudo udevmonitor udevmonitor will print the received events for: UDEV the event which udev sends out after rule processing UEVENT the kernel uevent UEVENT[1179079411.685653] add /module/e100 (module) UEVENT[1179079411.716449] add /bus/pci/drivers/e100 (drivers) UDEV [1179079411.719899] add /module/e100 (module) UDEV [1179079411.723261] add /bus/pci/drivers/e100 (drivers) UEVENT[1179079411.725199] add /devices/pci0000:00/0000:00:0a.0/eth0 (n= et) UDEV [1179079412.235478] add /devices/pci0000:00/0000:00:0a.0/lan (ne= t) {pts/1}% LC_ALL=3DC ll /sys/class/net total 0 lrwxrwxrwx 1 root root 0 May 13 22:00=20 eth1 -> ../../devices/pci0000:00/0000:00:10.0/0.0/eth1/ lrwxrwxrwx 1 root root 0 May 13 22:00=20 irda0 -> ../../devices/virtual/net/irda0/ lrwxrwxrwx 1 root root 0 May 13 22:03=20 lan -> ../../devices/pci0000:00/0000:00:0a.0/lan/ lrwxrwxrwx 1 root root 0 May 13 22:00 lo -> ../../devices/virtual/net/lo/ > Also tried > KERNEL=3D=3D"eth*", SYSFS{address}=3D=3D"00:a0:24:54:28:cb", NAME=3Deth1, > SYMLINK+=3D"lan", OPTIONS=3D"last_rule" > > which didn't help. > > Any suggestions? > > sean > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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 --nextPart1985986.KRxxcEeTKe Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBGR1MsR6LMutpd94wRAsUxAJ9OQiL+KSoVWgJhIneIYb4jy68HKwCgsQI8 rw8I+dosmoHspqP6WiH6M8M= =Vm0o -----END PGP SIGNATURE----- --nextPart1985986.KRxxcEeTKe-- --===============1448279031== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --===============1448279031== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1448279031==--