Persistent names by pci device path should be in by-path subdirectory,
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 13 Nov 2008 14:40:48 +0000 (14:40 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 13 Nov 2008 14:40:48 +0000 (14:40 +0000)
not by-id.

etc/udev/z99_comedi.rules

index e8fa6e05f9aac764974c10ebad75faa9f6db871c..c6303acfdd39da117594ee03b8b0e3914d3ca6b6 100644 (file)
@@ -1,6 +1,6 @@
 #This file provides some example udev rules which may be helpful for comedi.
 #It includes rules for creating symlinks to the device file with 
-#persistent names in /dev/comedi/by-id/, setting permissions and
+#persistent names in /dev/comedi/by-path/, setting permissions and
 #group ownership on the comedi device files, and examples showing
 #adjustment of a device file's buffer size.
 
@@ -11,10 +11,10 @@ ACTION!="add", GOTO="comedi_add_end"
 
 
 #create symlink with persistent name based on hardware path
-KERNEL=="comedi[0-9]*", KERNEL!="comedi[0-9]*_subd[0-9]*", SUBSYSTEMS=="pci", SYMLINK+="comedi/by-id/pci-$id"
+KERNEL=="comedi[0-9]*", KERNEL!="comedi[0-9]*_subd[0-9]*", SUBSYSTEMS=="pci", SYMLINK+="comedi/by-path/pci-$id"
 
 #persistent subdevice symlinks
-KERNEL=="comedi[0-9]*subd[0-9]*", SUBSYSTEMS=="pci", SYMLINK+="comedi/by-id/pci-$id_subd%n"
+KERNEL=="comedi[0-9]*subd[0-9]*", SUBSYSTEMS=="pci", SYMLINK+="comedi/by-path/pci-$id_subd%n"
 
 
 #The following line would automatically run comedi_config on main device file