You are not logged in.

#1 2006-03-16 21:39:26

Sander
Member
Registered: 2006-02-26
Posts: 138

udev rules being ignored [semi-solved]

I have 2 onboard NICs. They tended to switch names (eth0, eth1) because of udev's parallel detection. I fixed this recently with help of this page: http://wiki.archlinux.org/index.php/Ude … _Each_Boot

So I made the 10-network.rules file and added the correct mac addresses in it. Worked great, until recently. I don't know wether it's the installation of a harmful package (vmware-player) or a pacman -Syu that did it, but all of a sudden, it seems like the udev rules are being ignored. The network card names are switching around again...

Is there anywhere (a log or something) I can verify that udev has parsed my custom rules? Maybe I'm looking for the problem in the wrong direction? Any help would be very much appreciated.

Okay, I changed the new names back to lan0 and lan1, and so far this seems to work. However, I use Maple 10, and its silly activation mechanism requires you to have a device named eth0 with a valid mac address, else it won't let you in. So the problem isn't entirely solved yet, but this portion is.


You like cheese? You like peas? You'll love cheezy peas!

Offline

#2 2006-05-10 16:52:23

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: udev rules being ignored [semi-solved]

I'm having a similar problem. I've never fiddled with udev rules before, so I really have no clue. But surely, this should change ownership of /dev/rfcomm0?

KERNEL=="rfcomm[0-9]*", NAME="%k", GROUP="bluetooth", MODE="0660"

I've added it to /etc/udev/rules.d/bluemote.rules. The group of /dev/rfcomm0 remains 'tty'.

Offline

#3 2006-05-11 08:57:01

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: udev rules being ignored [semi-solved]

Try adding OPTIONS="last_rule" like this:

KERNEL=="rfcomm[0-9]*", NAME="%k", GROUP="bluetooth", MODE="0660", OPTIONS="last_rule"

Also you can rename the file to for example 010.bluemote.rules to be sure that this rule is processed as the first one.

Alternatively it should work like it is now if you only change all occureneces of "=" to ":=" (exept "==" of course). This is the new thing in udev and I haven't tried it so far.

Offline

#4 2006-05-11 09:46:37

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: udev rules being ignored [semi-solved]

lanrat wrote:

Try adding OPTIONS="last_rule" like this:

KERNEL=="rfcomm[0-9]*", NAME="%k", GROUP="bluetooth", MODE="0660", OPTIONS="last_rule"

Also you can rename the file to for example 010.bluemote.rules to be sure that this rule is processed as the first one.

Alternatively it should work like it is now if you only change all occureneces of "=" to ":=" (exept "==" of course). This is the new thing in udev and I haven't tried it so far.

Thanks alot! I replaced "=" with ":=" and it did the trick. I find it strange that /etc/udev/rules.d/udev.rules uses "=" itself, and those rules seem to get parsed. Anyway, it's working fine now smile

Offline

#5 2006-05-11 19:16:27

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: udev rules being ignored [semi-solved]

nightfrost wrote:

I find it strange that /etc/udev/rules.d/udev.rules uses "=" itself, and those rules seem to get parsed. Anyway, it's working fine now smile

Ok. It's normal that udev.rules uses = because this allows you to overwrite standard rules in your custom file. Rules are processed from the begining to end and they can overwrite properties of the previous rules.

Offline

#6 2006-05-12 10:21:35

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: udev rules being ignored [semi-solved]

Alright. That makes sense. Thanks for clarifying smile

Offline

Board footer

Powered by FluxBB