Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#9829 - udev 118-5: Own rules don't works

Attached to Project: Arch Linux
Opened by Attila (attila) - Thursday, 13 March 2008, 16:58 GMT
Last edited by Aaron Griffin (phrakture) - Thursday, 13 March 2008, 20:03 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture i686
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I have some rules in a file called /etc/udev/rules.d/01.myrules and before the last update all works fine. Now at example i have to step to "eth0" instead of my device name "lan". Before i read the readme if have had the example from http://www.reactivated.net/writing_udev_rules.html#example-netif but changing it to the example from "Second solution for network" don't helps. So i check my other rules and there is a simple way to reproduce my problem at the end.

Additional info:
* packages: hwd 5.3.3-1, klibc-udev 116-3 and udev 118-5
* /etc/modprobe.conf: alias lan e1000
* first version:
KERNEL=="eth*", SYSFS{address}=="00:16:17:b8:c9:22", NAME="lan"
* second version:
SUBSYTEM=="net", SYSFS{address}=="00:16:17:b8:c9:22", NAME="lan"

Steps to reproduce:
- create /etc/udev/rules.d/01.rules and put in this:
KERNEL=="tun", MODE="0660", NAME="net/%k", GROUP="network"
- reboot (or what else is necessary to reload the rules)
- modprobe tun
- result: crw-rw-rw- 1 root root 10, 200 13. Mär 17:52 /dev/net/tun
- after a "rmmod tun" the device still exists
- The result is the rule from 50-udev-default.rules but not mine
This task depends upon

Closed by  Aaron Griffin (phrakture)
Thursday, 13 March 2008, 20:03 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Udev rule files must end with '.rule'
Comment by Tobias Powalowski (tpowa) - Thursday, 13 March 2008, 17:03 GMT
about tun how about addding OPTIONS="last_rule" to your rule?
Comment by Attila (attila) - Thursday, 13 March 2008, 19:30 GMT
Appending OPTIONS="last_rule don't change anything but thanks for the hint because i never used this before.

It seems that my rules file won't be accepted because if i comment out the line in 50-udev-default.rules and put my line there it works fine. Oh, shit i found it.

Result: After renaming my file from "01.myrules" to "01-attila.rules" and your suggestion inside it the permissions of /dev/net/tun looks fine. I will try the same with my lan device and say if it works.
Comment by Attila (attila) - Thursday, 13 March 2008, 19:49 GMT
I have my lan device back and during the reboot i remember that i have rename my 01.rules to 01.myrules to be on the safe and forget to rename it back. After loosing my network i get a little bit in confusion and oversee that a rules file have to have the extension ".rule" which was the error. I close this bug report and thanks very much for your help.

Loading...