mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 06:27:16 +08:00
dhcpcd command explanations
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@107 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
1cc8e0f5e8
commit
5fcd7c57bc
@ -2,7 +2,7 @@
|
||||
<title>Configuring dhcpcd</title>
|
||||
|
||||
<sect3><title>Config files</title>
|
||||
<para><userinput>/etc/dhcpc/*</userinput></para></sect3>
|
||||
<para><userinput>/var/lib/dhcpc/*</userinput></para></sect3>
|
||||
|
||||
<sect3><title>Configuration Information</title>
|
||||
|
||||
|
@ -1,12 +1,29 @@
|
||||
<sect2>
|
||||
<title>Command explanations</title>
|
||||
|
||||
<para>There may be a good reason for abandoning the normal BLFS convention
|
||||
of using --prefix=/usr here. If you are installing DHCP, it is likely that
|
||||
it is required during the boot process and /usr may be network mounted in
|
||||
which case, dhcpcd wouldn't be available due to being on the network!
|
||||
Therefore, depending on your situation, you may want it to be installed
|
||||
in /sbin or /usr/sbin.</para>
|
||||
<para><userinput>patch -Np1 -i ../dhcpcd-&dhcpcd-version;.patch
|
||||
:</userinput> Dhcpcd unpatched puts all configuration and temporary
|
||||
files in <filename>/etc/dhcpc</filename>. This becomes very annoying
|
||||
when dhcpcd tells you it's running and it's not. You look in
|
||||
<filename>/var/run</filename> for the pid file, but it's not there, the
|
||||
pid file that needs deleting is in <filename>/etc/dhcpc</filename>. This
|
||||
patch brings this program into FHS compliance, but more importantly,
|
||||
puts files where you expect them to be.</para>
|
||||
|
||||
<para><userinput>--prefix="" :</userinput>There may be a good reason for
|
||||
abandoning the normal BLFS convention of using --prefix=/usr here. If
|
||||
you are installing DHCP, it is likely that it is required during the
|
||||
boot process and /usr may be network mounted in which case, dhcpcd
|
||||
wouldn't be available due to being on the network! Therefore, depending
|
||||
on your situation, you may want it to be installed in <filename>/sbin</filename> or <filename>/usr/sbin</filename>. This command installs to <filename>/sbin</filename>.</para>
|
||||
|
||||
<para><userinput>--sysconfdir=/var/lib :</userinput> This command install
|
||||
configuration files in the <filename>/var/lib</filename>
|
||||
directory.</para>
|
||||
|
||||
<para><userinput>--mandir=/usr/share/man :</userinput> This command
|
||||
install the man pages to the <filename>/usr/share/man</filename>
|
||||
directory.</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<sect2>
|
||||
<title>Installation of dhcpcd</title>
|
||||
|
||||
<para>Before installing dhcpcd, you need to download <filename>dhcpcd-1.3.22-pl1.patch.bz2</filename> from <ulink url="&file-root;"/> and decompress it to your source directory.</para>
|
||||
<para>Before installing dhcpcd, you need to download <filename>dhcpcd-&dhcpcd-version;.patch.bz2</filename> from <ulink url="&file-root;"/> and decompress it to your source directory.</para>
|
||||
|
||||
<para>Install dhcpcd by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>patch -Np1 -i ../dhcpcd-1.3.22-pl1.patch &&
|
||||
<para><screen><userinput>patch -Np1 -i ../dhcpcd-&dhcpcd-version;.patch &&
|
||||
./configure --prefix="" --sysconfdir=/var/lib \
|
||||
--mandir=/usr/share/man &&
|
||||
make &&
|
||||
|
@ -11,7 +11,8 @@ page in Chapter 1 for details on who wrote what.</para>
|
||||
<itemizedlist>
|
||||
|
||||
<listitem><para>August 17th, 2002 [larry]: Added patch paragraph to
|
||||
dhcpcd and cdrdao. Fixed typos in j2sdk.</para></listitem>
|
||||
dhcpcd and cdrdao. Fixed typos in j2sdk. Added explanations of commands
|
||||
to dhcpcd.</para></listitem>
|
||||
|
||||
<listitem><para>August 17th, 2002 [markh]: Moved patches to the
|
||||
blfs-patches/CVS directory on ftp.linuxfromscratch.org and update file-root
|
||||
|
Loading…
Reference in New Issue
Block a user