Changeset 531886d


Ignore:
Timestamp:
05/08/2006 02:46:36 AM (18 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
93b8f83d
Parents:
85eca89b
Message:

Fine tuning libusb udev rules.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6022 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/genlib/libusb.xml

    r85eca89b r531886d  
    153153    </indexterm>
    154154   
    155     <para>To have USB devices set up properly, add the followng
     155    <para>To have raw USB devices set up properly, add the following
    156156    <application>udev</application> rule and add any users
    157     that need USB devices to the "usb" group.</para>
     157    that need to access raw USB devices to the "usb" group.</para>
    158158   
    159159<screen><literal>cat &gt; /etc/udev/rules.d/23-usb-rules &lt;&lt; "EOF"
    160 # Set group ownership for USB devices
    161 SUBSYSTEM=="usb_device", \
    162 PROGRAM="/bin/sh -c 'X=%k X=$${X#usbdev} B=$${X%%%%.*} D=$${X#*.}; \
    163 echo bus/usb/$$B/$$D'", SYMLINK+="%c", GROUP="usb"
     160# Set group ownership for raw USB devices
     161SUBSYSTEM=="usb_device", GROUP="usb"
    164162EOF</literal></screen>
    165163
    166     <para>Fine-tunuing of permissions is also possible by creating extra rules,
     164    <para>Fine-tuning of permissions is also possible by creating extra rules,
    167165    matching on something like this (on one line).  The vendor and product can
    168166    be found by searchng the <filename
    169     class='directory'>/sys/devices</filename> directory entries after
    170     the device has been attached.</para>
     167    class='directory'>/sys/devices</filename> directory entries or using
     168    <command>udevinfo</command> after the device has been attached.  See the
     169    documentation in the current udev directory of <filename
     170    class='directory'>/usr/share/doc></filename> for details.</para>
    171171
    172172<screen><literal>SUBSYSTEM=="usb_device", SYSFS{idVendor}=="05d8",
    173173SYSFS{idProduct}=="4002", GROUP:="scanner"</literal></screen>
    174174
    175 
    176 
    177     <para>Some older applications need the following deprecated entry in
    178     the <filename>/etc/fstab</filename> file.  Do not use it unless you
    179     know its needed.</para>
     175    <para>Some older applications, such as <application>VMware</application>,
     176    need the following deprecated entry in the <filename>/etc/fstab</filename>
     177    file.  Do not use it unless you know its needed.</para>
    180178
    181179<screen><literal>usbfs  /proc/bus/usb  usbfs  devgid=14,devmode=0660  0  0</literal></screen>
Note: See TracChangeset for help on using the changeset viewer.