[blfs-book] r12741 - trunk/BOOK/networking/connect

pierre at higgs.linuxfromscratch.org pierre at higgs.linuxfromscratch.org
Wed Feb 19 13:52:39 PST 2014


Author: pierre
Date: Wed Feb 19 13:52:39 2014
New Revision: 12741

Log:
Update dhcpcd instructions so that the lease is persistent across
reboots, and add a "command explanations" section

Modified:
   trunk/BOOK/networking/connect/dhcpcd.xml

Modified: trunk/BOOK/networking/connect/dhcpcd.xml
==============================================================================
--- trunk/BOOK/networking/connect/dhcpcd.xml	Wed Feb 19 12:41:42 2014	(r12740)
+++ trunk/BOOK/networking/connect/dhcpcd.xml	Wed Feb 19 13:52:39 2014	(r12741)
@@ -72,8 +72,7 @@
     commands:</para>
 
 <screen><userinput>./configure --libexecdir=/lib/dhcpcd \
-            --dbdir=/run             \
-            --sysconfdir=/etc &&
+            --dbdir=/var/tmp         &&
 make</userinput></screen>
 
     <para>This package does not come with a test suite.</para>
@@ -82,6 +81,7 @@
 
 <screen role='root'><userinput>make install</userinput></screen>
 
+<!--
     <para>By default, a plain text lease info file isn't created but the
     <application>dhcpcd</application> provides a hook which can be used for creating
     such a file. Install the hook by running the following
@@ -89,9 +89,34 @@
 
 <screen role='root'><userinput>sed -i "s;/var/lib;/run;g" dhcpcd-hooks/50-dhcpcd-compat &&
 install -v -m 644 dhcpcd-hooks/50-dhcpcd-compat /lib/dhcpcd/dhcpcd-hooks/</userinput></screen>
+-->
 
   </sect2>
 
+  <sect2 role="commands">
+    <title>Command Explanations</title>
+
+    <para>
+      <parameter>--libexecdir=/lib/dhcpcd</parameter>: The default
+      <filename class="directory">/libexec</filename> is not FHS-compliant.
+      Since this directory may need to be available early in the boot,
+      <filename class="directory">/usr/libexec</filename> cannot be used either.
+    </para>
+
+    <para>
+      <parameter>--dbdir=/var/tmp</parameter>: The default
+      <filename class="directory">/var/lib</filename> is not FHS-compliant
+    </para>
+
+    <para>
+      <option>--with-hook=...</option>: You can optionally install more hooks,
+      for example to install some configuration files such as
+      <filename>ntp.conf</filename>. The set of hooks is in the
+      <filename class="directory">dhcpcd-hooks</filename> directory in the
+      build tree.
+    </para>
+  </sect2>
+
   <sect2 role="configuration">
     <title>Configuring dhcpcd</title>
 



More information about the blfs-book mailing list