Udev changes

Alexander E. Patrakov patrakov at ums.usu.ru
Fri Oct 28 07:39:50 PDT 2005

Duncan Webb wrote:
> Alexander E. Patrakov wrote:
>> Duncan Webb wrote:
>>> Matthew Burgess wrote:

>>> # usbfs-like device nodes
>>> SUBSYSTEM="usb_device", PROGRAM="/bin/sh -c 'X=%k X=$${X#usbdev} 
>>> B=$${X%%%%.*} D=$${X#*.}; echo bus/usb/$$B/$$D'", SYMLINK+="%c"
>> Only after linux-2.6.14 please, and synchronously with patching libusb 
>> in BLFS and removing the /proc/bus/usb mount. But those rules will of 
>> course do no harm with earlier kernel.

Well, linux-2.6.14 is out. But should this rule (that only adds a 
symlink) be a part of LFS or BLFS? In this form plus GROUP=usb, I prefer 
BLFS. If we change this rule to use NAME instead of SYMLINK (so that 
/dev/bus/usb/1/2 is a device node, not a symlink to /dev/usbdev1.2), 
then the answer should be exactly the same as for ALSA rules.

Alexander E. Patrakov

More information about the lfs-dev mailing list