Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] SysFS-Support



Hi guys.. my patch is ready to use. I ahve only one problem with the udev-rule. Maybe somebody can
help me.
 
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"
 
And here is my rule, added to /etc/udev/udev.rules:
SYSFS{adap}="adapter[0-9]*",      NAME="dvb/adapter%i/%k"
 
 
This rould shold make of
/dev/frontend0
a
/dev/dvb/adapter0/frontend0
 
But afer an reboot i get this:
 
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
 
Maybe somebody can help me on with this udev.rule.
 
Thanks, Christian

Home | Main Index | Thread Index