mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 23:07:23 +08:00
ccca0bd5cf
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2164 af4574ff-66df-0310-9fd7-8a98e5e911e0
27 lines
1.1 KiB
XML
27 lines
1.1 KiB
XML
<sect2>
|
|
<title>Configuring <application>libusb</application></title>
|
|
|
|
<!-- To be reviewed when hotplug enters the LFS book -->
|
|
|
|
<para>libusb requires the usbfs kernel filesystem to be mounted on
|
|
<filename class="directory">/proc/bus/usb</filename>. Applications
|
|
require the files in this directory to be accessible to the user,
|
|
sometimes for both reading and writing.</para>
|
|
|
|
<para>To restrict access to <acronym>USB</acronym> devices, create the
|
|
usb group:</para>
|
|
|
|
<screen><userinput><command>groupadd -g 15 usb</command></userinput></screen>
|
|
|
|
<para>To get usbfs mounted on boot, we will create a special init script,
|
|
because just putting an extra line into
|
|
<filename>/etc/fstab</filename> does not work for those who compiled
|
|
"USB device filesystem" as a kernel module.
|
|
Install <filename>/etc/rc.d/init.d/usb</filename>
|
|
init script included in the
|
|
<xref linkend="intro-important-bootscripts"/> package.</para>
|
|
|
|
<screen><userinput><command>make install-usb</command></userinput></screen>
|
|
|
|
</sect2>
|