Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] udev network device renaming
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jamapii
l33t
l33t


Joined: 16 Sep 2004
Posts: 637

PostPosted: Sun Apr 28, 2013 9:39 pm    Post subject: [solved] udev network device renaming Reply with quote

Hi,

I have the files

-rw-r--r-- 1 root root 811 Mar 3 14:53 /etc/udev/rules.d/70-my-net.rules
-rw-r--r-- 1 root root 1903 Apr 13 2012 /etc/udev/rules.d/70-persistent-cd.rules
-rw-r--r-- 1 root root 1005 Nov 22 14:50 /etc/udev/rules.d/70-persistent-net.rules

70-my-net is mostly a copy of 70-persistent-net and sets up names like ethmy0.

However, I have never seen any of my names. Doesn't it take precedence over 70-persistent-net, as it is sorted first alphabetically?

Does udev write any log messages or debug output?

udev version is 197-r8


Last edited by jamapii on Mon Apr 29, 2013 10:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Apr 29, 2013 1:28 am    Post subject: Re: udev network device renaming Reply with quote

jamapii wrote:
Doesn't it take precedence

It's run first, but whatever sets NAME *last* wins - unless := is used instead of =

man udev says:
Quote:
:=
Assign a value to a key finally; disallow any later changes.



Quote:
Does udev write any log messages or debug output?

Read man udevadm

Here's sample udev rules.
Back to top
View user's profile Send private message
jamapii
l33t
l33t


Joined: 16 Sep 2004
Posts: 637

PostPosted: Mon Apr 29, 2013 10:34 pm    Post subject: Reply with quote

Thanks! It works with NAME:=
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum