From: Frank Mori Hess Date: Thu, 13 Nov 2008 14:40:48 +0000 (+0000) Subject: Persistent names by pci device path should be in by-path subdirectory, X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8884128f3a2256365a9e048899eb5d0683312fbf;p=comedilib.git Persistent names by pci device path should be in by-path subdirectory, not by-id. --- diff --git a/etc/udev/z99_comedi.rules b/etc/udev/z99_comedi.rules index e8fa6e0..c6303ac 100644 --- a/etc/udev/z99_comedi.rules +++ b/etc/udev/z99_comedi.rules @@ -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