View previous topic :: View next topic |
Author |
Message |
AustrianCoder Apprentice
Joined: 11 Oct 2003 Posts: 258 Location: �sterreich
|
Posted: Fri May 14, 2004 10:35 pm Post subject: Problem mit udev regel |
|
|
Hallo.
Ich habe einen Patch für die DVB-Treiber geschrieben, der sysfs support added. So scheint alles zu funzen, doch meine Regel in /etc/udev/udev.rules will nicht.
Quote: |
vdr root # udevinfo -a -p /sys/class/dvb/adapter0/frontend0
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.
looking at class device '/sys/class/dvb/adapter0/frontend0':
SYSFS{adap}="adapter0"
SYSFS{dev}="250:3"
|
Hier nun meine Regel:
Code: |
SYSFS{adap}="adapter[0-9]*", NAME="dvb/adapter%i/%k"
|
Nach dieser regel sollte aus
/dev/frontend0
ein
/dev/dvb/adapter0/frontend0 werden
Aber nach einen reboot schaut das so aus:
Quote: |
vdr root # ls -l /dev/
total 0
crw-rw-rw- 1 root root 250, 7 May 15 00:33 adapter0
...
crw-rw-rw- 1 root root 250, 4 May 15 00:33 demux0
...
crw-rw-rw- 1 root root 250, 5 May 15 00:33 dvr0
...
crw-rw-rw- 1 root root 250, 3 May 15 00:33 frontend0
...
crw-rw-rw- 1 root root 250, 7 May 15 00:33 net0
|
|
|
Back to top |
|
|
yeoman Tux's lil' helper
Joined: 05 Jan 2004 Posts: 109 Location: Germany
|
Posted: Thu May 20, 2004 8:11 am Post subject: |
|
|
Leider liegt meine DVB Karte mangels Satelitenschüssel gerade auf Eis, aber trotzdem schön daß jemand die Treiber ins udev-Zeitalter katapultiert.
Also bei mir liegen die udev-Regeln unter /etc/udev/rules.d/ (udev025-r1) und müsste es nicht Code: | SYSFS{adap}="adapter[0-9]*", NAME="dvb/adapter%n/%k" |
heißen, %i hab ich in der manpage jedenfalls nicht gefunden? |
|
Back to top |
|
|
AustrianCoder Apprentice
Joined: 11 Oct 2003 Posts: 258 Location: �sterreich
|
Posted: Thu May 20, 2004 10:01 am Post subject: |
|
|
Funzt nun
Hab die Regel zuvor in /etc/udev/udev.rules drinnen gehabt, nun hab ich sie in /etc/udev/rules.d/* drinnen und geht einfach super. |
|
Back to top |
|
|
|
|
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
|
|