Index: introduction/welcome/changelog.xml
===================================================================
--- introduction/welcome/changelog.xml	(revision 1ad30c22d51ab93d36eecde2931a94675500eeb5)
+++ introduction/welcome/changelog.xml	(revision d4bf650a22f127ca17da37cfd74b63fb43f27f30)
@@ -45,4 +45,9 @@
       <para>March 8th, 2008</para>
       <itemizedlist>
+        <listitem>
+          <para>[bdubbs] - Udated to autofs-5.0.3. Expanded explanation of the
+          use of autofs and created a procedure to automatically downlaod and
+          apply all patches.</para>
+        </listitem>
         <listitem>
           <para>[ag] - Added a patch to fix the UTF-8 related issues in Links.
Index: postlfs/config/autofs.xml
===================================================================
--- postlfs/config/autofs.xml	(revision 1ad30c22d51ab93d36eecde2931a94675500eeb5)
+++ postlfs/config/autofs.xml	(revision d4bf650a22f127ca17da37cfd74b63fb43f27f30)
@@ -4,23 +4,10 @@
   <!ENTITY % general-entities SYSTEM "../../general.ent">
   %general-entities;
-
-    <!-- Inserted as a reminder to do this. The mention of a test suite
-         is usually right before the root user installation commands. Please
-         delete these 12 (including one blank) lines after you are done.-->
-
-    <!-- Use one of the two mentions below about a test suite,
-         delete the line that is not applicable. Of course, if the
-         test suite uses syntax other than "make check", revise the
-         line to reflect the actual syntax to run the test suite -->
-
-    <!-- <para>This package does not come with a test suite.</para> -->
-    <!-- <para>To test the results, issue: <command>make check</command>.</para> -->
-
-  <!ENTITY autofs-patch-dir     "http://ftp.kernel.org/pub/linux/daemons/autofs/v4/">
-  <!ENTITY autofs-download-http "http://ftp.kernel.org/pub/linux/daemons/autofs/v4/autofs-&autofs-version;.tar.bz2">
-  <!ENTITY autofs-download-ftp "ftp://ftp.kernel.org/pub/linux/daemons/autofs/v4/autofs-&autofs-version;.tar.bz2">
-  <!ENTITY autofs-md5sum        "7e3949114c00665b4636f0c318179657">
-  <!ENTITY autofs-size          "168 KB">
-  <!ENTITY autofs-buildsize     "2.3 MB">
+  <!ENTITY autofs-patch-dir     "http://ftp.kernel.org/pub/linux/daemons/autofs/v5">
+  <!ENTITY autofs-download-http "http://ftp.kernel.org/pub/linux/daemons/autofs/v5/autofs-&autofs-version;.tar.bz2">
+  <!ENTITY autofs-download-ftp "ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/autofs-&autofs-version;.tar.bz2">
+  <!ENTITY autofs-md5sum        "27839fe6fa8105b2b7d31bc922fd7cf6">
+  <!ENTITY autofs-size          "221 KB">
+  <!ENTITY autofs-buildsize     "8.9 MB">
   <!ENTITY autofs-time          "less than 0.1 SBU">
 ]>
@@ -45,7 +32,12 @@
     <para>The <application>autofs</application> package contains userspace
     tools that work with the kernel to mount and un-mount removable file
-    systems. This is useful for allowing users to mount floppies, cdroms and
+    systems. The primary use is to mount external network file systems like
+    nfs (see <xref linkend="nfs-utils"/>) or Samba (see <xref linkend="samba3"/>)
+    on demand.</para>
+    
+    <para>It may also be useful for allowing users to mount floppies, cdroms and
     other removable storage devices without requiring the system
-    administrator to mount the devices.  This may not be ideal for all
+    administrator to mount the devices although this capability is now generally
+    provided by HAL (see <xref linkend="hal"/>).  This may not be ideal for all
     installations, so be aware of the risks before implementing this feature.</para>
 
@@ -73,11 +65,12 @@
 
     <bridgehead renderas="sect3">Additional Downloads</bridgehead>
-    <itemizedlist spacing="compact">
-      <listitem>
-        <para>Recommended Patch: <ulink
-        url="&patch-root;/autofs-&autofs-version;-consolidated-1.patch"/></para>
-      </listitem>
-    </itemizedlist>
-
+        <para>Recommended Patches: There are frequent patches issued
+        for <application>autofs</application>.  To get the current patches, 
+        start in the same directory as the main tar file and run:</para>
+        
+<screen><userinput>wget &autofs-patch-dir;/patch_order-&autofs-version; &amp;&amp;
+sed 's;autofs;&autofs-patch-dir;/autofs;' patch_order-&autofs-version; &gt; wget-list &amp;&amp;
+wget -i wget-list</userinput></screen>
+    
     <para condition="html" role="usernotes">User Notes:
     <ulink url="&blfs-wiki;/autofs"/></para>
@@ -112,12 +105,16 @@
     commands:</para>
 
-<screen><userinput>patch -Np1 -i ../autofs-&autofs-version;-consolidated-1.patch &amp;&amp;
+<screen><userinput>for f in `cat ../patch_order-&autofs-version;`; do 
+  patch -Np1 -i ../$f
+done &amp;&amp;
 ./configure --prefix=/ --mandir=/usr/share/man &amp;&amp;
 make</userinput></screen>
 
+    <para>This package does not come with a test suite.</para>
+
     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
 
 <screen role="root"><userinput>make install &amp;&amp;
-rm /etc/rc.d/init.d/autofs</userinput></screen>
+ln -sf  ../init.d/autofs $(EXTDIR)/rc.d/rcsysinit.d/S52autofs</userinput></screen>
 
   </sect2>
@@ -126,12 +123,11 @@
     <title>Command Explanations</title>
 
-    <para><command>patch -Np1 -i
-    ../autofs-&autofs-version;-consolidated-1.patch</command>: This patch
-    is a consolidation of nine small patches available at <ulink
-    url="http://ftp.kernel.org/pub/linux/daemons/autofs/v4/"/>.  The patches
-    can be applied individually if desired.</para>
-
-    <para><command>rm /etc/rc.d/init.d/autofs</command>: This command removes
-    the installed script which only works on specific distributions.</para>
+    <para><command>for f in `cat ../patch_order-&autofs-version;`; do
+      patch -Np1 -i ../$f;  done</command>: This command applies all the 
+      patches fetched earlier in the correct order.</para>
+
+    <para><command>ln -sf  ../init.d/autofs 
+    $(EXTDIR)/rc.d/rcsysinit.d/S52autofs</command>: This command sets the 
+    link to properly start autofs upon boot.</para>
 
   </sect2>
@@ -170,7 +166,7 @@
 
       <para>The installation process creates <filename>auto.master</filename>,
-      <filename>auto.misc</filename> and <filename>auto.net</filename>. You
-      will replace the <filename>auto.master</filename> with the following
-      commands:</para>
+      <filename>auto.misc</filename>,  <filename>auto.smb</filename>, and
+      <filename>auto.net</filename>. You will replace the
+      <filename>auto.master</filename> with the following commands:</para>
 
 <screen role="root"><userinput>mv /etc/auto.master /etc/auto.master.bak &amp;&amp;
@@ -178,5 +174,5 @@
 <literal># Begin /etc/auto.master
 
-/media  /etc/auto.misc
+/media/cdrom  /etc/auto.misc
 
 # End /etc/auto.master</literal>
@@ -184,7 +180,12 @@
 
       <note>
-        <para>This file mounts a new media directory over the one created by
-        LFS and will therefore hide any mounts made by the
-        <filename>fstab</filename> file into that directory.</para>
+
+        <para>This file mounts a new media directory but is not visible until
+        it is automounted by autofs.  An alternative method would be to
+        automount into another location such as
+        <filename>/var/lib/autofs/cdrom</filename> and create a sysbolic
+        link from <filename>/media/cdrom</filename> to the other
+        location.</para>
+      
       </note>
 
@@ -201,5 +202,5 @@
 
     </sect3>
-
+<!--
     <sect3  id="autofs-init">
       <title>Boot Script</title>
@@ -223,5 +224,5 @@
 
     </sect3>
-
+-->
   </sect2>
 
@@ -236,5 +237,9 @@
       <seglistitem>
         <seg>automount</seg>
-        <seg>autofs modules</seg>
+        <seg>lookup_file.so, lookup_hosts.so, lookup_multi.so,
+        lookup_nisplus.so, lookup_program.so, lookup_userhome.so,
+        lookup_yp.so, mount_afs.so, mount_autofs.so, mount_bind.so,
+        mount_changer.so, mount_ext2.so, mount_generic.so, 
+        mount_nfs.so, parse_sun.so</seg>
         <seg>/lib/autofs and /var/run/autofs</seg>
       </seglistitem>
