mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-21 22:48:31 +00:00
9922b2698c
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2432 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
37 lines
1.3 KiB
XML
37 lines
1.3 KiB
XML
<sect2><title> </title><para> </para></sect2>
|
|
|
|
<sect2>
|
|
<title>Creating devices</title>
|
|
|
|
<para>Please note that unpacking the MAKEDEV-&makedev-version;.bz2 file
|
|
doesn't create a directory for you to <userinput>cd</userinput> into, as
|
|
the file contains one shell script.</para>
|
|
|
|
<para>Install the MAKEDEV script:</para>
|
|
|
|
<para><screen><userinput>cp MAKEDEV-&makedev-version; /dev/MAKEDEV</userinput></screen></para>
|
|
|
|
<para>Prepare the script for execution:</para>
|
|
|
|
<para><screen><userinput>cd /dev &&
|
|
chmod 754 MAKEDEV</userinput></screen></para>
|
|
|
|
<para>Run the script to create the device files:</para>
|
|
|
|
<para><screen><userinput>./MAKEDEV -v generic</userinput></screen></para>
|
|
|
|
<para>If a device you need is missing, try running
|
|
<userinput>./MAKEDEV -v <device></userinput>. Alternatively, you may
|
|
create devices via the <emphasis>mknod</emphasis> program. Please refer to
|
|
the man and info pages of <emphasis>mknod</emphasis> if you need more
|
|
information.</para>
|
|
|
|
<para>If you intend to use <emphasis>devpts</emphasis>, pass the
|
|
<userinput>generic-nopty</userinput> option to <filename>MAKEDEV</filename>.
|
|
This creates the same devices as <userinput>generic</userinput>, but it skips
|
|
the creation of <emphasis>pty</emphasis> devices so that
|
|
<emphasis>devpts<emphasis> can manage those.</para>
|
|
|
|
</sect2>
|
|
|