On do, 2008-04-10 at 21:36 +0200, Duncan Webb wrote: > I wonder if there is a way to use a udev rule to rename the other devices. > > I think that it would be nicer if a device that has more than one > sub-device created a directory in /dev so you would end up with devices > like: > /dev/ivtv0/video > /dev/ivtv0/vbi > /dev/ivtv0/radio > /dev/ivtv0/audio > /dev/ivtv0/yuv-out or /dev/ivtv0/yuv-encode > > Then it would be easy to write udev rules that made symlinks and there > would be some relationship between a module name and a device.
I think that should be possible. You will want to use %n which is the kernel device number. For example, NAME="ivtv%n/video", SYMLINK+="%k" http://ivtvdriver.org/index.php/Howto#Howto_use_udev_rules.21 http://reactivated.net/writing_udev_rules.html If you succeed it would be great if you update the wiki how you did it. Greets Sander _______________________________________________ ivtv-devel mailing list [email protected] http://ivtvdriver.org/mailman/listinfo/ivtv-devel
